Make SBUS switching conditional to be friendly to IO v1

This commit is contained in:
Lorenz Meier 2014-01-23 09:29:59 +01:00
parent c74660fec5
commit 9e72e72644
1 changed files with 2 additions and 0 deletions

View File

@ -123,7 +123,9 @@ controls_tick() {
/* switch S.Bus output pin as needed */
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));
#endif
}
perf_end(c_gather_sbus);