RC Input: Reset lock state when switching to a new protocol

This commit is contained in:
Lorenz Meier 2021-03-20 07:55:39 +01:00 committed by Daniel Agar
parent 3502ba53ba
commit 435ef38eda

View File

@ -245,6 +245,7 @@ void RCInput::set_rc_scan_state(RC_SCAN newState)
PX4_DEBUG("RCscan: %s failed, trying %s", RCInput::RC_SCAN_STRING[_rc_scan_state], RCInput::RC_SCAN_STRING[newState]);
_rc_scan_begin = 0;
_rc_scan_state = newState;
_rc_scan_locked = false;
}
void RCInput::rc_io_invert(bool invert)