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 committed Jun 2, 2023
1 parent ef788c6 commit 27120f2
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 27120f2

Please sign in to comment.