fix(tx16smk3): allow invert flag for BSP, invert SI and SJ (#7425)
This commit is contained in:
@@ -222,6 +222,12 @@ static SwitchHwPos _get_switch_pos(uint8_t idx)
|
||||
}
|
||||
}
|
||||
|
||||
if (def->inverted) {
|
||||
pos = pos == SWITCH_HW_UP ? SWITCH_HW_DOWN
|
||||
: pos == SWITCH_HW_DOWN ? SWITCH_HW_UP
|
||||
: pos;
|
||||
}
|
||||
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user