diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 53935c4912..62a31f214d 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -732,7 +732,7 @@ PX4FMU::set_pwm_rate(uint32_t rate_map, unsigned default_rate, unsigned alt_rate * rate and mode. (See rates above.) */ - for (unsigned group = 0; group < _max_actuators; group++) { // TODO : make sure this doesn't touch trigger + for (unsigned group = 0; group < _max_actuators; group++) { // get the channel mask for this rate group uint32_t mask = up_pwm_servo_get_rate_group(group); @@ -1251,7 +1251,7 @@ PX4FMU::cycle() /* do mixing */ float outputs[_max_actuators]; - _num_outputs = _mixers->mix(outputs, _num_outputs, NULL); // TODO : what + _num_outputs = _mixers->mix(outputs, _num_outputs, NULL); /* publish mixer status */ multirotor_motor_limits_s multirotor_motor_limits = {}; diff --git a/src/drivers/stm32/drv_io_timer.c b/src/drivers/stm32/drv_io_timer.c index 9f3c0d2a64..59263eabe7 100644 --- a/src/drivers/stm32/drv_io_timer.c +++ b/src/drivers/stm32/drv_io_timer.c @@ -790,7 +790,10 @@ int io_timer_set_enable(bool state, io_timer_channel_mode_t mode, io_timer_chann action_cache[timer].dier_clearbits |= GTIM_DIER_CC1IE << shifts; action_cache[timer].dier_setbits |= dier_bit << shifts; - if ((state && (mode == IOTimerChanMode_PWMOut || mode == IOTimerChanMode_OneShot || mode == IOTimerChanMode_Trigger))) { + if ((state && + (mode == IOTimerChanMode_PWMOut || + mode == IOTimerChanMode_OneShot || + mode == IOTimerChanMode_Trigger))) { action_cache[timer].gpio[shifts] = timer_io_channels[chan_index].gpio_out; } } @@ -847,7 +850,9 @@ int io_timer_set_ccr(unsigned channel, uint16_t value) int mode = io_timer_get_channel_mode(channel); if (rv == 0) { - if ((mode != IOTimerChanMode_PWMOut) && (mode != IOTimerChanMode_OneShot) && (mode != IOTimerChanMode_Trigger)) { + if ((mode != IOTimerChanMode_PWMOut) && + (mode != IOTimerChanMode_OneShot) && + (mode != IOTimerChanMode_Trigger)) { rv = -EIO; @@ -869,7 +874,9 @@ uint16_t io_channel_get_ccr(unsigned channel) if (io_timer_validate_channel_index(channel) == 0) { int mode = io_timer_get_channel_mode(channel); - if ((mode == IOTimerChanMode_PWMOut) || (mode == IOTimerChanMode_OneShot) || (mode == IOTimerChanMode_Trigger)) { + if ((mode == IOTimerChanMode_PWMOut) || + (mode == IOTimerChanMode_OneShot) || + (mode == IOTimerChanMode_Trigger)) { value = REG(channels_timer(channel), timer_io_channels[channel].ccr_offset); } }