feat: Flysky PL18U Support (#6114)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
d81513d4f2
commit
f4c019bbb1
@@ -43,15 +43,15 @@ SwitchHwPos boardSwitchGetPosition(SwitchCategory cat, uint8_t idx)
|
||||
if (idx == 1 && (swVal < 512 || (swVal >= 1536 && swVal < 2560))) {
|
||||
return SWITCH_HW_DOWN;
|
||||
}
|
||||
} /*else if (idx <= 3) {
|
||||
/* } else if (idx <= 3) {
|
||||
uint16_t swVal = getAnalogValue(5);
|
||||
if (idx == 3 && (swVal < 512 || (swVal >= 1536 && swVal < 2560))) {
|
||||
return SWITCH_HW_DOWN;
|
||||
}
|
||||
if (idx == 2 && (swVal >= 3584 || (swVal >= 1536 && swVal < 2560))) {
|
||||
return SWITCH_HW_DOWN;
|
||||
}
|
||||
}*/
|
||||
}*/
|
||||
}
|
||||
return SWITCH_HW_UP;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user