From 5edc8a07b2dcea236a5e52e6da13b494da43ad51 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 7 Oct 2018 09:28:31 +0200 Subject: [PATCH] FocusSettingsCommand: Use Focus.handleHelp This saves a few bytes of PROGMEM for us. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Settings-Focus.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp index 2ed4c15a..c34890f5 100644 --- a/src/Kaleidoscope/EEPROM-Settings-Focus.cpp +++ b/src/Kaleidoscope/EEPROM-Settings-Focus.cpp @@ -29,10 +29,8 @@ EventHandlerResult FocusSettingsCommand::onFocusEvent(const char *command) { CRC, } sub_command; - if (strcmp_P(command, PSTR("help")) == 0) { - Serial.println(F("settings.valid?\nsettings.version\nsettings.crc")); + if (::Focus.handleHelp(command, PSTR("settings.valid?\nsettings.version\nsettings.crc"))) return EventHandlerResult::OK; - } if (strncmp_P(command, PSTR("settings."), 9) != 0) return EventHandlerResult::OK;