From ba3f1986f2cff8a577d5a9d03043d1102edf93f3 Mon Sep 17 00:00:00 2001 From: tablatronix <807787+tablatronix@users.noreply.github.com> Date: Thu, 28 Sep 2023 23:41:35 -0500 Subject: [PATCH] Revert "#1587" This reverts commit b735c61f6ec97c299c457ced4efe1e0c27bdb87e. --- wm_consts_en.h | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/wm_consts_en.h b/wm_consts_en.h index b1c615f46..fc21b42ff 100644 --- a/wm_consts_en.h +++ b/wm_consts_en.h @@ -19,32 +19,20 @@ const char WM_VERSION_STR[] PROGMEM = "v2.0.15-rc.1"; -static const char _wifi_token[] PROGMEM = "wifi"; -static const char _wifinoscan_token[] PROGMEM = "wifinoscan"; -static const char _info_token[] PROGMEM = "info"; -static const char _param_token[] PROGMEM = "param"; -static const char _close_token[] PROGMEM = "close"; -static const char _restart_token[] PROGMEM = "restart"; -static const char _exit_token[] PROGMEM = "exit"; -static const char _erase_token[] PROGMEM = "erase"; -static const char _update_token[] PROGMEM = "update"; -static const char _sep_token[] PROGMEM = "sep"; -static const char _custom_token[] PROGMEM = "custom"; -static PGM_P _menutokens[] PROGMEM = { - _wifi_token, - _wifinoscan_token, - _info_token, - _param_token, - _close_token, - _restart_token, - _exit_token, - _erase_token, - _update_token, - _sep_token, - _custom_token +const uint8_t _nummenutokens = 11; +const char * const _menutokens[_nummenutokens] PROGMEM = { + "wifi", + "wifinoscan", + "info", + "param", + "close", + "restart", + "exit", + "erase", + "update", + "sep", + "custom" }; -const uint8_t _nummenutokens = (sizeof(_menutokens) / sizeof(PGM_P)); - const char R_root[] PROGMEM = "/"; const char R_wifi[] PROGMEM = "/wifi";