fix(simulator): incorrect initialisation of preflight checks for colorlcd (#5170)

This commit is contained in:
philmoz
2024-06-13 11:00:42 +10:00
committed by GitHub
parent 14417ebf40
commit 9c625faeee
+4 -4
View File
@@ -121,16 +121,16 @@ void applyDefaultTemplate()
LayoutFactory::loadDefaultLayout();
// enable switch warnings
for (int i = 0; i < MAX_SWITCHES; i++) {
for (uint64_t i = 0; i < MAX_SWITCHES; i++) {
if (SWITCH_EXISTS(i)) {
g_model.switchWarning |= (1 << (3 * i));
g_model.switchWarning |= (1ull << (3ull * i));
}
}
#else
// enable switch warnings
for (int i = 0; i < MAX_SWITCHES; i++) {
for (uint64_t i = 0; i < MAX_SWITCHES; i++) {
if (SWITCH_WARNING_ALLOWED(i))
g_model.switchWarning |= (1 << (3 * i));
g_model.switchWarning |= (1ull << (3ull * i));
}
#endif