mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-22 06:03:55 -06:00
🩹 Allow M42 S0/1 analogWrite on PWM pins (STM32) (#22631)
This commit is contained in:
parent
01d1192a44
commit
9a9d55ceb0
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void GcodeSuite::M42() {
|
|||
|
||||
#ifdef ARDUINO_ARCH_STM32
|
||||
// A simple I/O will be set to 0 by analogWrite()
|
||||
if (pin_status <= 1) return;
|
||||
if (pin_status <= 1 && !PWM_PIN(pin)) return;
|
||||
#endif
|
||||
analogWrite(pin, pin_status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue