Skip to content

Commit 174becc

Browse files
authored
fix(ledc): missing correct log message format
1 parent 08fea23 commit 174becc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-ledc.c

Lines changed: 1 addition & 1 deletion
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_e("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)