mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 14:55:13 +03:00
Non regression test for 0 division issue in flight phases switch
This commit is contained in:
parent
8a2e035dc9
commit
423ca57f10
4 changed files with 39 additions and 11 deletions
|
@ -346,9 +346,9 @@ void Gruvin9xSim::refreshDiplay()
|
|||
k5st = ks;
|
||||
}
|
||||
switch(id){
|
||||
case 0: ping |= (1<<INP_G_ID1); pine &= ~(1<<INP_E_ID2); break;
|
||||
case 1: ping &= ~(1<<INP_G_ID1); pine &= ~(1<<INP_E_ID2); break;
|
||||
case 2: ping &= ~(1<<INP_G_ID1); pine |= (1<<INP_E_ID2); break;
|
||||
case 0: setSwitch(DSW_ID0); break;
|
||||
case 1: setSwitch(DSW_ID1); break;
|
||||
case 2: setSwitch(DSW_ID2); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue