diff options
author | px4dev <px4@purgatory.org> | 2013-02-24 14:06:28 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-02-24 14:06:28 -0800 |
commit | 776cf6093c97a6bb4c8fe9543b91c7039708fc85 (patch) | |
tree | 41e7971cf11c4d290e93a72a358aedd456b400d0 /apps/drivers/px4io/px4io.cpp | |
parent | e818bcbfc2a91b7716ef782d15f2b8bf9f644419 (diff) | |
download | px4-firmware-776cf6093c97a6bb4c8fe9543b91c7039708fc85.tar.gz px4-firmware-776cf6093c97a6bb4c8fe9543b91c7039708fc85.tar.bz2 px4-firmware-776cf6093c97a6bb4c8fe9543b91c7039708fc85.zip |
&& -> &
Diffstat (limited to 'apps/drivers/px4io/px4io.cpp')
-rw-r--r-- | apps/drivers/px4io/px4io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index 18350718c..2488f8022 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -1218,7 +1218,7 @@ PX4IO::print_status() uint16_t mapped_inputs = io_reg_get(PX4IO_PAGE_RC_INPUT, PX4IO_P_RC_VALID); printf("mapped R/C inputs 0x%04x", mapped_inputs); for (unsigned i = 0; i < _max_rc_input; i++) { - if (mapped_inputs && (1 << i)) + if (mapped_inputs & (1 << i)) printf(" %u:%u", i, io_reg_get(PX4IO_PAGE_RC_INPUT, PX4IO_P_RC_BASE + i)); } printf("\n"); |