small updates to treppe

This commit is contained in:
Simon Schmidt 2021-07-05 21:33:08 +02:00
parent 7177472ea6
commit 0e5085c008

View File

@ -268,7 +268,7 @@ void Treppe::setup()
}
void Treppe::set_idle_prozent(int prozent) {
uint16_t new_pwm = 0xFFF * prozent / 100;
uint16_t new_pwm = active_pwm * prozent / 100;
set_idle_pwm(new_pwm);
}