MCPcopy Create free account
hub / github.com/BruceDevices/firmware / doLoad

Function doLoad

src/modules/others/ibutton.cpp:288–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288static void doLoad() {
289 IButtonResult r = loadKey();
290 if (r == IBUTTON_SUCCESS) {
291 displaySuccess("Key loaded");
292 delay(1000);
293 } else if (r == IBUTTON_CRC_ERROR) {
294 displayWarning("Loaded (CRC mismatch)", true);
295 delay(1500);
296 } else {
297 displayError("Load failed", true);
298 delay(1500);
299 }
300}
301
302static void doReset() {
303 memset(keyBuffer, 0, sizeof(keyBuffer));

Callers 1

selectMenuOptionFunction · 0.85

Calls 4

loadKeyFunction · 0.85
displaySuccessFunction · 0.85
displayWarningFunction · 0.85
displayErrorFunction · 0.85

Tested by

no test coverage detected