STM32F1: ignore output check for analogWrite() (#14498)
This commit is contained in:
parent
7a42132002
commit
052aa23efe
@ -322,7 +322,7 @@ uint16_t analogRead(pin_t pin) {
|
|||||||
|
|
||||||
// Wrapper to maple unprotected analogWrite
|
// Wrapper to maple unprotected analogWrite
|
||||||
void analogWrite(pin_t pin, int pwm_val8) {
|
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);
|
analogWrite(uint8_t(pin), pwm_val8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user