From cdc739a663e5e364dd0f52b1f403062c556f1b6b Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Mon, 19 Dec 2016 23:26:25 +0100 Subject: [PATCH] Forgot about poor old 9x --- radio/src/gui/128x64/model_special_functions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radio/src/gui/128x64/model_special_functions.cpp b/radio/src/gui/128x64/model_special_functions.cpp index 09c7053b2..fbcb8dac4 100644 --- a/radio/src/gui/128x64/model_special_functions.cpp +++ b/radio/src/gui/128x64/model_special_functions.cpp @@ -176,6 +176,7 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF uint8_t val_max = 255; #endif if (func == FUNC_RESET) { +#if defined (CPUARM) val_max = FUNC_RESET_PARAM_FIRST_TELEM+lastUsedTelemetryIndex(); int param = CFN_PARAM(cfn); if (param < FUNC_RESET_PARAM_FIRST_TELEM) { @@ -186,6 +187,10 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF lcdDrawSizedText(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, sensor->label, TELEM_LABEL_LEN, attr|ZCHAR); } if (active) INCDEC_ENABLE_CHECK(functionsContext == &globalFunctionsContext ? isSourceAvailableInGlobalResetSpecialFunction : isSourceAvailableInResetSpecialFunction); +#else + val_max = FUNC_RESET_PARAM_LAST; + lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, STR_VFSWRESET, CFN_PARAM(cfn), attr); +#endif } #if defined(OVERRIDE_CHANNEL_FUNCTION) else if (func == FUNC_OVERRIDE_CHANNEL) {