Skip to content

Commit acc78d1

Browse files
committed
network: settings: hide irrelevant ones
1 parent 0e2458d commit acc78d1

File tree

2 files changed

+68
-29
lines changed

2 files changed

+68
-29
lines changed

arduino-nixie/arduino-nixie.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void goToFn(byte thefn); //used by network
160160
int dateComp(int y, byte m, byte d, byte mt, byte dt, bool countUp); //used by network
161161
void findFnAndPageNumbers(); //used by network
162162

163-
#define HIDE_IRRELEVANT_OPTIONS 0 //TODO change options to settings everywhere
163+
#define SHOW_IRRELEVANT_OPTIONS 0 //TODO change options to settings everywhere //for debug
164164

165165
//These cpp files contain code that is conditionally included
166166
//based on the available hardware and settings in the config file.
@@ -604,7 +604,7 @@ void fnOptScroll(byte dir){
604604
if(dir==0) fn = (fn==fnOpts? posLast: fn-1);
605605
//Certain options don't apply to some configurations; skip those.
606606
byte optLoc = optsLoc[fn-fnOpts];
607-
if(HIDE_IRRELEVANT_OPTIONS && ( //see also: network requestType=1
607+
if(!SHOW_IRRELEVANT_OPTIONS && ( //see also: network requestType=1
608608
//Hardware config
609609
(PIEZO_PIN<0 && (optLoc==39||optLoc==40||optLoc==41||optLoc==47||optLoc==48||optLoc==49)) //no piezo: no signal pitches or alarm/timer/strike beeper pattern
610610
|| ((PIEZO_PIN<0 && RELAY_MODE==0) && (optLoc==21||optLoc==50)) //no piezo, and relay is switch: no strike, or alarm fibonacci mode
@@ -1424,7 +1424,7 @@ void updateDisplay(){
14241424
}
14251425
}
14261426
break;
1427-
case fnIsTemp: //thermometer
1427+
case fnIsTemp: //thermometer TODO disable if rtc doesn't support it
14281428
int temp; temp = rtcGetTemp();
14291429
if(readEEPROM(45,false)==1) temp = temp*1.8 + 3200;
14301430
//TODO another option to apply offset

0 commit comments

Comments
 (0)