Fixed outputting timers, flight modes, mixers and limits

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:10 +01:00
parent 0200e1eaa7
commit 1ec3113a85
3 changed files with 56 additions and 29 deletions
+5 -2
View File
@@ -35,9 +35,12 @@ void TimerData::clear()
swtch = RawSwitch(SWITCH_TYPE_NONE);
}
bool TimerData::isEmpty()
bool TimerData::isEmpty() const
{
return (swtch == RawSwitch(SWITCH_TYPE_NONE, 0) && mode == TIMERMODE_OFF && name[0] == '\0' && minuteBeep == 0 && countdownBeep == COUNTDOWNBEEP_SILENT && val == 0 && persistent == 0 /*&& pvalue == 0*/);
return (swtch == RawSwitch(SWITCH_TYPE_NONE, 0) && mode == TIMERMODE_OFF &&
name[0] == '\0' && minuteBeep == 0 &&
countdownBeep == COUNTDOWNBEEP_SILENT && val == 0 &&
persistent == 0 /*&& pvalue == 0*/);
}
bool TimerData::isModeOff()