From ff46d8eede19d707bfeb45df313eb89657db26a4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 19 Mar 2017 11:11:32 +0100 Subject: [PATCH] Use the new Focus helpers Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Settings-Focus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp index dd683ae7..3051e472 100644 --- a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp +++ b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp @@ -17,6 +17,7 @@ */ #include +#include #include "crc.h" namespace FocusHooks { @@ -41,7 +42,8 @@ namespace FocusHooks { switch (subCommand) { case ISVALID: - Serial.println (EEPROMSettings.isValid () ? F("yes") : F("no")); + Focus.printBool (EEPROMSettings.isValid ()); + Serial.println (); break; case GETVERSION: Serial.println (EEPROMSettings.version ()); @@ -74,10 +76,8 @@ namespace FocusHooks { case DUMP: for (uint16_t i = 0; i < EEPROM.length (); i++) { uint8_t d = EEPROM[i]; - if (d < 16) - Serial.print (0); - Serial.print (d, HEX); - Serial.print (F(" ")); + Focus.printNumber (d); + Focus.printSpace (); if ((i + 1) % 32 == 0) Serial.println (); }