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

Loading…
Cancel
Save