diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-03-05 00:05:17 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-03-05 00:05:17 +0400 |
commit | 149bf4582c67296097106566ec98a85229be9509 (patch) | |
tree | c1c1b7885185786d36d107c2b04794962e51774c /src/drivers | |
parent | af548db7cc0a53b1c07a74342ec528e6247b0fcb (diff) | |
download | px4-firmware-149bf4582c67296097106566ec98a85229be9509.tar.gz px4-firmware-149bf4582c67296097106566ec98a85229be9509.tar.bz2 px4-firmware-149bf4582c67296097106566ec98a85229be9509.zip |
px4io: hardcode number of control groups in "px4io status"
Diffstat (limited to 'src/drivers')
-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 4c48194d4..136a6e29e 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1921,7 +1921,7 @@ PX4IO::print_status() io_reg_get(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_PWM_ALTRATE)); #endif printf("debuglevel %u\n", io_reg_get(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_SET_DEBUG)); - for (unsigned group = 0; group < PX4IO_CONTROL_GROUPS; group++) { + for (unsigned group = 0; group < 4; group++) { printf("controls %u:", group); for (unsigned i = 0; i < _max_controls; i++) |