Fix b&w compile with DANGEROUS_MODULE_FUNCTIONS enabled

This commit is contained in:
elecpower
2022-06-13 22:43:17 +02:00
committed by Raphael Coeffic
parent 1978fa521f
commit 1b9cce9882
2 changed files with 4 additions and 2 deletions
@@ -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) {
@@ -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) {