From 33a19c3b51023a0c4c23a5601b2fc4885212a2a9 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 4 Jun 2017 14:43:06 +0200 Subject: [PATCH] Fix the Focus hooks We need to reference the global `Focus` object, not a local one, to avoid confusion. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Settings-Focus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp index 66f536b7..9a14c0a1 100644 --- a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp +++ b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp @@ -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 {