diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-23 09:29:59 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-23 09:29:59 +0100 |
commit | 9e72e726442198feb6b4d3a725c8195ef55ffe55 (patch) | |
tree | 38e2f47db983e003bfd0253ec06743f7a5035f13 /src/modules/px4iofirmware/controls.c | |
parent | c74660fec5a076ed768ac1f1f64659e838e3925a (diff) | |
download | px4-firmware-9e72e726442198feb6b4d3a725c8195ef55ffe55.tar.gz px4-firmware-9e72e726442198feb6b4d3a725c8195ef55ffe55.tar.bz2 px4-firmware-9e72e726442198feb6b4d3a725c8195ef55ffe55.zip |
Make SBUS switching conditional to be friendly to IO v1
Diffstat (limited to 'src/modules/px4iofirmware/controls.c')
-rw-r--r-- | src/modules/px4iofirmware/controls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/controls.c b/src/modules/px4iofirmware/controls.c index 5859f768b..5e2c92bf4 100644 --- a/src/modules/px4iofirmware/controls.c +++ b/src/modules/px4iofirmware/controls.c @@ -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); |