Skip to content

Commit 42bf774

Browse files
committed
fix(ci): Fix uninitialized timer variable warning
1 parent 245074e commit 42bf774

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
@@ -210,7 +210,7 @@ bool ledcAttachChannel(uint8_t pin, uint32_t freq, uint8_t resolution, uint8_t c
210210
}
211211

212212
uint8_t group = (channel / 8);
213-
uint8_t timer;
213+
uint8_t timer = 0;
214214
bool channel_used = ledc_handle.used_channels & (1UL << channel);
215215

216216
if (channel_used) {

0 commit comments

Comments
 (0)