Skip to content

Commit 08fea23

Browse files
authored
fix(ledc): failing to execute shall issue error log
1 parent cdd04b1 commit 08fea23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-ledc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ void analogWrite(uint8_t pin, int value) {
455455
// Therefore, it will adjust Arduino MAX Duty to be the LEDC MAx Duty
456456
uint32_t max_duty = (1 << bus->channel_resolution) - 1;
457457
if (value < 0 || value > max_duty) {
458-
log_w("Duty is out of range. Valid duty range for pin d is 0 to %d", pin, max_duty);
458+
log_e("Duty is out of range. Valid duty range for pin d is 0 to %d", pin, max_duty);
459459
return;
460460
}
461461
if (value == max_duty) {

0 commit comments

Comments
 (0)