Browse Source

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

pull/1/head
Tanguy Pruvot 6 years ago
committed by Scott Lahteine
parent
commit
052aa23efe
  1. 2
      Marlin/src/HAL/HAL_STM32F1/HAL.cpp

2
Marlin/src/HAL/HAL_STM32F1/HAL.cpp

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

Loading…
Cancel
Save