px4io: hardcode number of control groups in "px4io status"

This commit is contained in:
Anton Babushkin 2014-03-05 00:05:17 +04:00
parent af548db7cc
commit 149bf4582c
1 changed files with 1 additions and 1 deletions

View File

@ -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++)