diff options
| author | James Young <xxiinophobia@yahoo.com> | 2020-02-29 12:00:00 -0800 |
|---|---|---|
| committer | James Young <xxiinophobia@yahoo.com> | 2020-02-29 11:59:30 -0800 |
| commit | 26eef35f07698d23aafae90e1c230b52e100a334 (patch) | |
| tree | eb8e43fc58ca55788e6e89430af0db55ea79e324 /quantum/serial_link/system/serial_link.c | |
| parent | 85041ff05bf0e5f4ff4535caf6e638491a5614c8 (diff) | |
| download | qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.tar.gz qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.zip | |
2020 February 29 Breaking Changes Update (#8064)
Diffstat (limited to 'quantum/serial_link/system/serial_link.c')
| -rw-r--r-- | quantum/serial_link/system/serial_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/serial_link/system/serial_link.c b/quantum/serial_link/system/serial_link.c index feac64e29..c59c06894 100644 --- a/quantum/serial_link/system/serial_link.c +++ b/quantum/serial_link/system/serial_link.c | |||
| @@ -119,7 +119,7 @@ static THD_FUNCTION(serialThread, arg) { | |||
| 119 | eventflags_t flags1 = 0; | 119 | eventflags_t flags1 = 0; |
| 120 | eventflags_t flags2 = 0; | 120 | eventflags_t flags2 = 0; |
| 121 | if (need_wait) { | 121 | if (need_wait) { |
| 122 | eventmask_t mask = chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(1000)); | 122 | eventmask_t mask = chEvtWaitAnyTimeout(ALL_EVENTS, TIME_MS2I(1000)); |
| 123 | if (mask & EVENT_MASK(1)) { | 123 | if (mask & EVENT_MASK(1)) { |
| 124 | flags1 = chEvtGetAndClearFlags(&sd1_listener); | 124 | flags1 = chEvtGetAndClearFlags(&sd1_listener); |
| 125 | print_error("DOWNLINK", flags1, &SD1); | 125 | print_error("DOWNLINK", flags1, &SD1); |
| @@ -192,7 +192,7 @@ void serial_link_update(void) { | |||
| 192 | 192 | ||
| 193 | systime_t current_time = chVTGetSystemTimeX(); | 193 | systime_t current_time = chVTGetSystemTimeX(); |
| 194 | systime_t delta = current_time - last_update; | 194 | systime_t delta = current_time - last_update; |
| 195 | if (changed || delta > US2ST(5000)) { | 195 | if (changed || delta > TIME_US2I(5000)) { |
| 196 | last_update = current_time; | 196 | last_update = current_time; |
| 197 | last_matrix = matrix; | 197 | last_matrix = matrix; |
| 198 | matrix_object_t* m = begin_write_keyboard_matrix(); | 198 | matrix_object_t* m = begin_write_keyboard_matrix(); |
