Fixes #1451
This commit is contained in:
@@ -1594,6 +1594,7 @@ PACK(typedef struct t_TimerData {
|
|||||||
uint8_t spare:4;
|
uint8_t spare:4;
|
||||||
uint16_t value;
|
uint16_t value;
|
||||||
}) TimerData;
|
}) TimerData;
|
||||||
|
#define IS_PERSISTENT_TIMER(idx) g_model.timers[idx].persistent
|
||||||
#else
|
#else
|
||||||
PACK(typedef struct t_TimerData {
|
PACK(typedef struct t_TimerData {
|
||||||
int8_t mode; // timer trigger source -> off, abs, stk, stk%, sw/!sw, !m_sw/!m_sw
|
int8_t mode; // timer trigger source -> off, abs, stk, stk%, sw/!sw, !m_sw/!m_sw
|
||||||
@@ -1602,6 +1603,7 @@ PACK(typedef struct t_TimerData {
|
|||||||
uint16_t minuteBeep:1;
|
uint16_t minuteBeep:1;
|
||||||
uint16_t spare:2;
|
uint16_t spare:2;
|
||||||
}) TimerData;
|
}) TimerData;
|
||||||
|
#define IS_PERSISTENT_TIMER(idx) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum Protocols {
|
enum Protocols {
|
||||||
|
|||||||
@@ -1619,8 +1619,14 @@ void flightReset()
|
|||||||
else
|
else
|
||||||
AUDIO_RESET();
|
AUDIO_RESET();
|
||||||
|
|
||||||
timerReset(0);
|
if (!IS_PERSISTENT_TIMER(0)) {
|
||||||
timerReset(1);
|
timerReset(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!IS_PERSISTENT_TIMER(1)) {
|
||||||
|
timerReset(1);
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(FRSKY)
|
#if defined(FRSKY)
|
||||||
telemetryReset();
|
telemetryReset();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user