#74 comms establish on boot

This commit is contained in:
Mikayla Fischler
2022-07-05 23:48:01 -04:00
parent 409e8083a7
commit 1444008479
5 changed files with 154 additions and 38 deletions

View File

@@ -201,7 +201,7 @@ end
---@param target_timing integer minimum amount of milliseconds to wait for
---@param last_update integer millisecond time of last update
---@return integer time_now
-- EVENT_CONSUMER: this function consumes events
--- EVENT_CONSUMER: this function consumes events
function util.adaptive_delay(target_timing, last_update)
local sleep_for = target_timing - (util.time() - last_update)
-- only if >50ms since worker loops already yield 0.05s