mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 22:05:10 +03:00
Issue #592 - AND switch bug on 9x stock
This commit is contained in:
parent
38129abd43
commit
01242e2b78
2 changed files with 16 additions and 1 deletions
|
@ -4550,8 +4550,16 @@ void menuModelCustomSwitches(uint8_t event)
|
|||
#endif
|
||||
}
|
||||
|
||||
// CSW and switch
|
||||
// CSW AND switch
|
||||
#if defined(CPUARM)
|
||||
putsSwitches(CSW_4TH_COLUMN, y, cs->andsw, horz==3 ? attr : 0);
|
||||
#else
|
||||
uint8_t andsw = cs->andsw;
|
||||
if (andsw > SWSRC_LAST_SWITCH) {
|
||||
andsw += SWSRC_SW1-SWSRC_LAST_SWITCH-1;
|
||||
}
|
||||
putsSwitches(CSW_4TH_COLUMN, y, andsw, horz==3 ? attr : 0);
|
||||
#endif
|
||||
|
||||
#if defined(CPUARM)
|
||||
// CSW duration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue