diff options
author | Holger Steinhaus <holger@steinhaus-home.de> | 2014-08-16 21:43:07 +0200 |
---|---|---|
committer | Holger Steinhaus <holger@steinhaus-home.de> | 2014-08-16 21:44:52 +0200 |
commit | 5b1e4db396425ea6dc559734b785753c54449235 (patch) | |
tree | e2c02123ca08a7fe53c8d6d46f5bd26abc9bc487 | |
parent | e9b0ee75015cf3544a3dab2015d7af77f53bd23e (diff) | |
download | px4-firmware-5b1e4db396425ea6dc559734b785753c54449235.tar.gz px4-firmware-5b1e4db396425ea6dc559734b785753c54449235.tar.bz2 px4-firmware-5b1e4db396425ea6dc559734b785753c54449235.zip |
px4io driver: fix actuator output format
-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 32069cf09..97919538f 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1968,7 +1968,7 @@ PX4IO::print_status(bool extended_status) printf("actuators"); for (unsigned i = 0; i < _max_actuators; i++) - printf(" %u", io_reg_get(PX4IO_PAGE_ACTUATORS, i)); + printf(" %hi", int16_t(io_reg_get(PX4IO_PAGE_ACTUATORS, i))); printf("\n"); printf("servos"); |