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/visualizer/visualizer.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/visualizer/visualizer.c')
-rw-r--r-- | quantum/visualizer/visualizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index 3f182e74d..9e9cb6d41 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c | |||
@@ -352,7 +352,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) { | |||
352 | 352 | ||
353 | // On windows the system ticks is the same as milliseconds anyway | 353 | // On windows the system ticks is the same as milliseconds anyway |
354 | if (sleep_time != TIME_INFINITE) { | 354 | if (sleep_time != TIME_INFINITE) { |
355 | sleep_time = ST2MS(sleep_time); | 355 | sleep_time = TIME_I2MS(sleep_time); |
356 | } | 356 | } |
357 | #endif | 357 | #endif |
358 | geventEventWait(&event_listener, sleep_time); | 358 | geventEventWait(&event_listener, sleep_time); |
@@ -400,7 +400,7 @@ void update_status(bool changed) { | |||
400 | static systime_t last_update = 0; | 400 | static systime_t last_update = 0; |
401 | systime_t current_update = chVTGetSystemTimeX(); | 401 | systime_t current_update = chVTGetSystemTimeX(); |
402 | systime_t delta = current_update - last_update; | 402 | systime_t delta = current_update - last_update; |
403 | if (changed || delta > MS2ST(10)) { | 403 | if (changed || delta > TIME_MS2I(10)) { |
404 | last_update = current_update; | 404 | last_update = current_update; |
405 | visualizer_keyboard_status_t* r = begin_write_current_status(); | 405 | visualizer_keyboard_status_t* r = begin_write_current_status(); |
406 | *r = current_status; | 406 | *r = current_status; |