small updates to treppe

This commit is contained in:
schmidtsi76327 committed 2021-07-05 21:33:08 +02:00
1 parent 7177472ea6
commit 0e5085c008
1 file changed
+1 -1
+1 -1
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);
}