Files
MeshCore-Solo/src/helpers
Daniel Novak 011edd3c99 Fix millis() wraparound in PacketQueue time comparisons
PacketQueue::countBefore() and PacketQueue::get() use unsigned
comparison (_schedule_table[j] > now) to check if a packet is
scheduled for the future. This breaks when millis() wraps around
after ~49.7 days: packets scheduled just before the wrap appear
to be in the far future and get stuck in the queue.

Use signed subtraction instead, matching the approach already used
by Dispatcher::millisHasNowPassed(). This correctly handles the
wraparound for time differences up to ~24.8 days in either
direction, well beyond the maximum queue delay of 32 seconds.
2026-02-22 18:01:55 +01:00
..
2025-12-02 10:31:24 +00:00
2026-02-15 11:25:27 +01:00
2025-06-25 11:00:24 +02:00
2026-02-06 02:24:51 +01:00
2025-06-30 03:46:18 +02:00