🐛 Fix G33, Delta radii, reachable (#22795)

This commit is contained in:
Luc Van Daele
2021-11-16 16:24:53 +01:00
committed by GitHub
parent 2aa36af557
commit 629498f8d4
5 changed files with 66 additions and 66 deletions

View File

@@ -26,7 +26,7 @@
void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size/*=255*/, const bool invert/*=false*/) {
if (!LPC176x::pin_is_valid(pin)) return;
if (LPC176x::pwm_attach_pin(pin))
if (LPC176x::pwm_attach_pin(pin))
LPC176x::pwm_write_ratio(pin, invert ? 1.0f - (float)v / v_size : (float)v / v_size); // map 1-254 onto PWM range
}