forked from Archive/PX4-Autopilot
Make SBUS switching conditional to be friendly to IO v1
This commit is contained in:
parent
c74660fec5
commit
9e72e72644
|
@ -123,7 +123,9 @@ controls_tick() {
|
||||||
|
|
||||||
/* switch S.Bus output pin as needed */
|
/* switch S.Bus output pin as needed */
|
||||||
if (sbus_status != (r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS)) {
|
if (sbus_status != (r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS)) {
|
||||||
|
#ifdef ENABLE_SBUS_OUT
|
||||||
ENABLE_SBUS_OUT((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS));
|
ENABLE_SBUS_OUT((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
perf_end(c_gather_sbus);
|
perf_end(c_gather_sbus);
|
||||||
|
|
Loading…
Reference in New Issue