Browse Source

small updates to treppe

tags/v1.0.0
Simon Schmidt 3 years ago
parent
commit
0e5085c008
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/treppe/treppe.cpp

+ 1
- 1
lib/treppe/treppe.cpp 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);
}


Loading…
Cancel
Save