diff options
| author | Joel Challis <git@zvecr.com> | 2019-08-13 18:23:14 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-08-13 10:23:14 -0700 |
| commit | d8d2a096742f611e3ade527e7224e8281867c563 (patch) | |
| tree | bcf44c2d53bf079f6a24901c7f709008216539f7 /tmk_core | |
| parent | 576b138c6e1e1835acae6cf15dba07f3813db25d (diff) | |
| download | qmk_firmware-d8d2a096742f611e3ade527e7224e8281867c563.tar.gz qmk_firmware-d8d2a096742f611e3ade527e7224e8281867c563.zip | |
Fix LT() crashing some ARM keyboards (#6529)
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/wait.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index a77840bce..9aed372b7 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h | |||
| @@ -13,8 +13,8 @@ extern "C" { | |||
| 13 | # define wait_us(us) _delay_us(us) | 13 | # define wait_us(us) _delay_us(us) |
| 14 | #elif defined PROTOCOL_CHIBIOS | 14 | #elif defined PROTOCOL_CHIBIOS |
| 15 | # include "ch.h" | 15 | # include "ch.h" |
| 16 | # define wait_ms(ms) chThdSleepMilliseconds(ms) | 16 | # define wait_ms(ms) do { if (ms != 0) { chThdSleepMilliseconds(ms); } else { chThdSleepMicroseconds(1); } } while (0) |
| 17 | # define wait_us(us) chThdSleepMicroseconds(us) | 17 | # define wait_us(us) do { if (us != 0) { chThdSleepMicroseconds(us); } else { chThdSleepMicroseconds(1); } } while (0) |
| 18 | #elif defined PROTOCOL_ARM_ATSAM | 18 | #elif defined PROTOCOL_ARM_ATSAM |
| 19 | # include "clks.h" | 19 | # include "clks.h" |
| 20 | # define wait_ms(ms) CLK_delay_ms(ms) | 20 | # define wait_ms(ms) CLK_delay_ms(ms) |
