2020 February 29 Breaking Changes Update (#8064)
This commit is contained in:
parent
85041ff05b
commit
26eef35f07
362 changed files with 27772 additions and 8810 deletions
|
@ -352,7 +352,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) {
|
|||
|
||||
// On windows the system ticks is the same as milliseconds anyway
|
||||
if (sleep_time != TIME_INFINITE) {
|
||||
sleep_time = ST2MS(sleep_time);
|
||||
sleep_time = TIME_I2MS(sleep_time);
|
||||
}
|
||||
#endif
|
||||
geventEventWait(&event_listener, sleep_time);
|
||||
|
@ -400,7 +400,7 @@ void update_status(bool changed) {
|
|||
static systime_t last_update = 0;
|
||||
systime_t current_update = chVTGetSystemTimeX();
|
||||
systime_t delta = current_update - last_update;
|
||||
if (changed || delta > MS2ST(10)) {
|
||||
if (changed || delta > TIME_MS2I(10)) {
|
||||
last_update = current_update;
|
||||
visualizer_keyboard_status_t* r = begin_write_current_status();
|
||||
*r = current_status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue