small updates to treppe
This commit is contained in:
parent
7177472ea6
commit
0e5085c008
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user