diff --git a/src/state.c b/src/state.c index 2a7b64e..ef97dc6 100644 --- a/src/state.c +++ b/src/state.c @@ -21,10 +21,10 @@ void state_init() { } void state_set_power(uint8_t power) { - if (power > 100) { - power = 100; - } - current_power = power; + if (power > 100) { + power = 100; + } + current_power = power; pwm_set_chan_level(pwm_slice, PWM_CHAN_A, power); pwm_set_chan_level(pwm_slice, PWM_CHAN_B, power); }