1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/esp32/periph/pwm.c: fix format specifier

Use %u to print `unsigned`.
This commit is contained in:
Marian Buschsieweke 2023-05-10 13:02:47 +02:00
parent 30ebacd784
commit 64f4f9a9be
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -323,7 +323,7 @@ void pwm_poweroff(pwm_t pwm)
void pwm_print_config(void)
{
for (unsigned pwm = 0; pwm < PWM_NUMOF; pwm++) {
printf("\tPWM_DEV(%d)\tchannels=[ ", pwm);
printf("\tPWM_DEV(%u)\tchannels=[ ", pwm);
for (int i = 0; i < _CFG.ch_numof; i++) {
printf("%d ", _CFG.gpios[i]);
}