Fix the Focus hooks

We need to reference the global `Focus` object, not a local one, to avoid confusion.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent ae8cd514a2
commit 33a19c3b51

@ -44,7 +44,7 @@ bool settingsFocusHook(const char *command) {
switch (sub_command) { switch (sub_command) {
case ISVALID: case ISVALID:
Focus.printBool(::EEPROMSettings.isValid()); ::Focus.printBool(::EEPROMSettings.isValid());
Serial.println(); Serial.println();
break; break;
case GETVERSION: case GETVERSION:
@ -78,8 +78,8 @@ bool eepromFocusHook(const char *command) {
if (Serial.peek() == '\n') { if (Serial.peek() == '\n') {
for (uint16_t i = 0; i < EEPROM.length(); i++) { for (uint16_t i = 0; i < EEPROM.length(); i++) {
uint8_t d = EEPROM[i]; uint8_t d = EEPROM[i];
Focus.printNumber(d); ::Focus.printNumber(d);
Focus.printSpace(); ::Focus.printSpace();
} }
Serial.println(); Serial.println();
} else { } else {

Loading…
Cancel
Save