|
|
@ -60,6 +60,7 @@ namespace FocusHooks {
|
|
|
|
|
|
|
|
|
|
|
|
bool eeprom (const char *command) {
|
|
|
|
bool eeprom (const char *command) {
|
|
|
|
enum {
|
|
|
|
enum {
|
|
|
|
|
|
|
|
FREE,
|
|
|
|
DUMP,
|
|
|
|
DUMP,
|
|
|
|
UPLOAD,
|
|
|
|
UPLOAD,
|
|
|
|
} subCommand;
|
|
|
|
} subCommand;
|
|
|
@ -68,6 +69,8 @@ namespace FocusHooks {
|
|
|
|
subCommand = DUMP;
|
|
|
|
subCommand = DUMP;
|
|
|
|
else if (strcmp_P (command, PSTR ("eeprom.upload")) == 0)
|
|
|
|
else if (strcmp_P (command, PSTR ("eeprom.upload")) == 0)
|
|
|
|
subCommand = UPLOAD;
|
|
|
|
subCommand = UPLOAD;
|
|
|
|
|
|
|
|
else if (strcmp_P (command, PSTR ("eeprom.free")) == 0)
|
|
|
|
|
|
|
|
subCommand = FREE;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
@ -87,6 +90,9 @@ namespace FocusHooks {
|
|
|
|
EEPROM.update (i, d);
|
|
|
|
EEPROM.update (i, d);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FREE:
|
|
|
|
|
|
|
|
Serial.println (EEPROM.length () - EEPROMSettings.used ());
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|