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

This commit is contained in:
Luc Van Daele authored and Scott Lahteine committed 2021-12-25 01:22:50 -06:00
1 parent 39a81d167e
commit 656034d2d9
5 files changed
+66 -66

No files matched your search

+1 -1
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
}