Browse Source

STM32F1: ignore output check for analogWrite() (#14498)

Tanguy Pruvot 6 years ago
parent
commit
052aa23efe
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_STM32F1/HAL.cpp

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/HAL.cpp View File

@@ -322,7 +322,7 @@ uint16_t analogRead(pin_t pin) {
322 322
 
323 323
 // Wrapper to maple unprotected analogWrite
324 324
 void analogWrite(pin_t pin, int pwm_val8) {
325
-  if (PWM_PIN(pin) && IS_OUTPUT(pin))
325
+  if (PWM_PIN(pin))
326 326
     analogWrite(uint8_t(pin), pwm_val8);
327 327
 }
328 328
 

Loading…
Cancel
Save