e99cf6e441
It didn't account for background task time and could end up sleeping for way longer than it should because the RTC compare time had already passed.