Switch warning fix for Horus (#3516)

This commit is contained in:
Damjan Adamic
2016-05-20 23:05:32 +02:00
committed by Bertrand Songis
parent f3d6dfea94
commit 0fad67a8ea
4 changed files with 25 additions and 16 deletions
+4
View File
@@ -470,6 +470,10 @@ void modelDefault(uint8_t id)
strcpy(g_model.screenData[0].layoutName, "Layout2P1");
extern const WidgetFactory * defaultWidget;
customScreens[0]->createWidget(0, defaultWidget);
// enable switch warnings
for (int i=0; i<NUM_SWITCHES; i++) {
g_model.switchWarningState |= (1 << (3*i));
}
#endif
}