the timing logic did not work in case that millis()+100 + frametime rolls over; in this case millis() > maxWait, and waiting would be skipped which might lead to crashes. -> logic slightly adjusted to be robust against rollover.
90 KiB
90 KiB