clang-format
This commit is contained in:
parent
5dc32c9136
commit
8025f0d380
|
@ -21,10 +21,10 @@ void state_init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void state_set_power(uint8_t power) {
|
void state_set_power(uint8_t power) {
|
||||||
if (power > 100) {
|
if (power > 100) {
|
||||||
power = 100;
|
power = 100;
|
||||||
}
|
}
|
||||||
current_power = power;
|
current_power = power;
|
||||||
pwm_set_chan_level(pwm_slice, PWM_CHAN_A, power);
|
pwm_set_chan_level(pwm_slice, PWM_CHAN_A, power);
|
||||||
pwm_set_chan_level(pwm_slice, PWM_CHAN_B, power);
|
pwm_set_chan_level(pwm_slice, PWM_CHAN_B, power);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue