From 1b9cce98823724685610648601d9b2e0eb560522 Mon Sep 17 00:00:00 2001 From: elecpower Date: Tue, 14 Jun 2022 05:56:24 +1000 Subject: [PATCH] Fix b&w compile with DANGEROUS_MODULE_FUNCTIONS enabled --- radio/src/gui/128x64/model_special_functions.cpp | 3 ++- radio/src/gui/212x64/model_special_functions.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/128x64/model_special_functions.cpp b/radio/src/gui/128x64/model_special_functions.cpp index 499c26075..3f821ea0a 100644 --- a/radio/src/gui/128x64/model_special_functions.cpp +++ b/radio/src/gui/128x64/model_special_functions.cpp @@ -280,7 +280,8 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF #if defined(DANGEROUS_MODULE_FUNCTIONS) else if (func >= FUNC_RANGECHECK && func <= FUNC_BIND) { val_max = NUM_MODULES-1; - lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, "\004Int.Ext.", CFN_PARAM(cfn), attr); + const char *text[] = {"Int.", "Ext."}; + lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, text, CFN_PARAM(cfn), attr); } #endif else if (func == FUNC_SET_TIMER) { diff --git a/radio/src/gui/212x64/model_special_functions.cpp b/radio/src/gui/212x64/model_special_functions.cpp index 9e0c9765b..a12e61e35 100644 --- a/radio/src/gui/212x64/model_special_functions.cpp +++ b/radio/src/gui/212x64/model_special_functions.cpp @@ -272,7 +272,8 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF #if defined(DANGEROUS_MODULE_FUNCTIONS) else if (func >= FUNC_RANGECHECK && func <= FUNC_BIND) { val_max = NUM_MODULES-1; - lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, "\004Int.Ext.", CFN_PARAM(cfn), attr); + const char *text[] = {"Int.", "Ext."}; + lcdDrawTextAtIndex(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, text, CFN_PARAM(cfn), attr); } #endif else if (func == FUNC_SET_TIMER) {