We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fea23 commit 174beccCopy full SHA for 174becc
cores/esp32/esp32-hal-ledc.c
@@ -455,7 +455,7 @@ void analogWrite(uint8_t pin, int value) {
455
// Therefore, it will adjust Arduino MAX Duty to be the LEDC MAx Duty
456
uint32_t max_duty = (1 << bus->channel_resolution) - 1;
457
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);
+ log_e("Duty is out of range. Valid duty range for pin %d is 0 to %d", pin, max_duty);
459
return;
460
}
461
if (value == max_duty) {
0 commit comments