Fix BW default switch warning
This commit is contained in:
@@ -125,9 +125,14 @@ void applyDefaultTemplate()
|
|||||||
g_model.switchWarningState |= (1 << (3 * i));
|
g_model.switchWarningState |= (1 << (3 * i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// enable switch warnings
|
||||||
|
for (int i = 0; i < MAX_SWITCHES; i++) {
|
||||||
|
if (SWITCH_WARNING_ALLOWED(i))
|
||||||
|
g_model.switchWarningState |= (1 << (3 * i));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: what about switch warnings in non-color LCD radios?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "datastructs.h"
|
#include "datastructs.h"
|
||||||
#include "libopenui/src/bitfield.h"
|
#include "libopenui/src/bitfield.h"
|
||||||
#include "storage/yaml/yaml_defs.h"
|
#include "storage/yaml/yaml_defs.h"
|
||||||
|
#include "hal/switch_driver.h"
|
||||||
|
|
||||||
#if defined(SDCARD_YAML)
|
#if defined(SDCARD_YAML)
|
||||||
#define EEPROM_VER 221
|
#define EEPROM_VER 221
|
||||||
|
|||||||
Reference in New Issue
Block a user