sensors: switch position reading bug fixed

This commit is contained in:
Anton Babushkin
2014-04-03 23:47:09 +04:00
parent 3641faed0c
commit 60355b4e6c
+1 -1
View File
@@ -1305,7 +1305,7 @@ Sensors::get_rc_switch_position(enum RC_CHANNELS_FUNCTION func)
if (value > STICK_ON_OFF_LIMIT) {
return SWITCH_POS_ON;
} else if (value < STICK_ON_OFF_LIMIT) {
} else if (value < -STICK_ON_OFF_LIMIT) {
return SWITCH_POS_OFF;
} else {