fix code style issues

This commit is contained in:
Felix Hu 2016-03-15 10:29:34 +08:00 committed by Lorenz Meier
parent bd580e09bf
commit 3295b29bf9
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ __EXPORT const timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
.timer_channel = 1,
.ccr_offset = STM32_GTIM_CCR1_OFFSET,
.masks = GTIM_SR_CC1IF | GTIM_SR_CC1OF
},
},
{
.gpio_out = GPIO_TIM1_CH2OUT,
.gpio_in = GPIO_TIM1_CH2IN,

View File

@ -257,7 +257,7 @@ led_pwm_servo_set(unsigned channel, uint8_t cvalue)
/* test timer for validity */
if ((led_pwm_timers[timer].base == 0) ||
(led_pwm_channels[channel].gpio_out== 0)) {
(led_pwm_channels[channel].gpio_out == 0)) {
return -1;
}