Results 14 comments of Harry Saal

used code like old = millis(); lowPowerHandler(); timeused = millis()-old; I can create a mini-sketch to demo the problem if need be.

static TimerEvent_t wakeUp; void onWakeUp() { return; } void setup() { Serial.begin(115200); delay(50); TimerInit(&wakeUp,onWakeUp); } void loop() { int sleepTime[] = {123,2345,9500,10000}; for (int i=0; i

I find the same problem when I use this sort of timing: int oldTime = TimerGetCurrentTime(); ....sleep.... sleptFor = TimerGetElapsedTime(oldTime); Timer is very busted.

I don't like the current behavior, since if I say "sleep for 9500ms" I expect that to be the case. But I can see if other timers than just one...