diff --git a/src/console.cpp b/src/console.cpp index e4e7b50ee..830af193d 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -107,7 +107,7 @@ void EMSESPShell::add_console_commands() { commands->add_command(ShellContext::MAIN, CommandFlags::USER, - flash_string_vector{F_(refresh)}, + flash_string_vector{F_(fetch)}, [&](Shell & shell, const std::vector & arguments __attribute__((unused))) { shell.printfln(F("Requesting data from EMS devices")); console_commands_loaded_ = false; @@ -177,11 +177,10 @@ void EMSESPShell::add_console_commands() { flash_string_vector{F_(n_mandatory)}, [](Shell & shell, const std::vector & arguments) { uint8_t tx_mode = std::strtol(arguments[0].c_str(), nullptr, 10); - + // save the tx_mode EMSESP::emsespSettingsService.update( [&](EMSESPSettings & settings) { settings.tx_mode = tx_mode; - shell.printfln(F_(tx_mode_fmt), tx_mode); return StateUpdateResult::CHANGED; }, "local"); diff --git a/src/console.h b/src/console.h index 5b335503c..e7458abf0 100644 --- a/src/console.h +++ b/src/console.h @@ -73,7 +73,7 @@ MAKE_PSTR_WORD(read) MAKE_PSTR_WORD(version) MAKE_PSTR_WORD(values) MAKE_PSTR_WORD(system) -MAKE_PSTR_WORD(refresh) +MAKE_PSTR_WORD(fetch) MAKE_PSTR_WORD(restart) MAKE_PSTR_WORD(format) MAKE_PSTR_WORD(raw)