fix(tx15): 3POS not working for SE/SF (#6572)
This commit is contained in:
@@ -189,7 +189,13 @@ static SwitchHwPos _get_switch_pos(uint8_t idx)
|
||||
bool hi = state & def->Pin_high;
|
||||
bool lo = state & def->Pin_low;
|
||||
|
||||
if (hi && lo) {
|
||||
if(!isSwitch3Pos(idx))
|
||||
{
|
||||
// Switch not declared as 3POS installed in a 3POS HW
|
||||
if (!(hi && lo)) {
|
||||
pos = SWITCH_HW_DOWN;
|
||||
}
|
||||
} else if (hi && lo) {
|
||||
pos = SWITCH_HW_MID;
|
||||
} else if (!hi && lo) {
|
||||
pos = SWITCH_HW_DOWN;
|
||||
|
||||
Reference in New Issue
Block a user