Skip to content

Commit

Permalink
platfoms: chibios: wait: only define the frequency (qmk#21115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 authored and jesperhellberg committed Sep 9, 2023
1 parent 8fd7a8a commit 3d3429b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/chibios/wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#ifdef WAIT_US_TIMER
void wait_us(uint16_t duration) {
static const GPTConfig gpt_cfg = {1000000, NULL, 0, 0}; /* 1MHz timer, no callback */
static const GPTConfig gpt_cfg = {.frequency = 1000000}; /* 1MHz timer, no callback */

if (duration == 0) {
duration = 1;
Expand Down

0 comments on commit 3d3429b

Please sign in to comment.