fix(tx15): 3POS not working for SE/SF (#6572)

This commit is contained in:
3djc
2025-09-14 11:47:32 +10:00
committed by GitHub
parent 0833ddc4f7
commit 7a604cca53
2 changed files with 17 additions and 8 deletions
+7 -1
View File
@@ -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;