diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-23 09:58:22 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-23 09:58:22 +0100 |
commit | 6a40acdbdc6abe57fb202a02e6ab6fa8c90698a9 (patch) | |
tree | 37175c0efabf85c60253d6ac105840795bc4e4ea /src | |
parent | 9e72e726442198feb6b4d3a725c8195ef55ffe55 (diff) | |
download | px4-firmware-6a40acdbdc6abe57fb202a02e6ab6fa8c90698a9.tar.gz px4-firmware-6a40acdbdc6abe57fb202a02e6ab6fa8c90698a9.tar.bz2 px4-firmware-6a40acdbdc6abe57fb202a02e6ab6fa8c90698a9.zip |
Fixed PPM warning to be only printed with PPM inputs enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 08ff3792f..a54bb3964 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1810,7 +1810,7 @@ PX4IO::print_status() printf("\n"); - if (raw_inputs > 0) { + if ((flags & PX4IO_P_STATUS_FLAGS_RC_PPM)) { int frame_len = io_reg_get(PX4IO_PAGE_STATUS, PX4IO_P_STATUS_RC_DATA); printf("RC data (PPM frame len) %u us\n", frame_len); |