~ruther/qmk_firmware

27120f2fb6cc32a1a544c2d26decce8facac9740 — dexter93 2 years ago ef788c6
platfoms: chibios: wait: only define the frequency (#21115)

1 files changed, 1 insertions(+), 1 deletions(-)

M platforms/chibios/wait.c
M platforms/chibios/wait.c => platforms/chibios/wait.c +1 -1
@@ 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;