1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 07:15:12 +03:00

Added missing keys initialization for simu

This commit is contained in:
Damjan Adamic 2015-08-18 19:54:25 +02:00
parent e685528fd3
commit b10276bb34

View file

@ -103,8 +103,10 @@ sem_t *eeprom_write_sem;
void simuInit() void simuInit()
{ {
for (int i = 0; i <= 17; i++) for (int i = 0; i <= 17; i++) {
simuSetSwitch(i, 0); simuSetSwitch(i, 0);
simuSetKey(i, false); // a little dirty, but setting keys that don't exist is perfectly OK here
}
} }
#define NEG_CASE(sw_or_key, pin, mask) \ #define NEG_CASE(sw_or_key, pin, mask) \