mcci-catena / ArduinoCore-samd

MCCI's fork of Adafruit's SAMD BSP, targeting MCCI's feather variants
0 stars 2 forks source link

Add atomic way of adjusting the time. #1

Closed terrillmoore closed 6 years ago

terrillmoore commented 7 years ago

With our patches to other libraries, we're able to do low-power sleep; but the arduino-lmic code needs to know how much time has passed, and depends on millis() to be correct. Add a new routine, adjust_millis_forward(), which the low-power sleep code can use to update millis() based on the real-time clock value after wakeup.

terrillmoore commented 6 years ago

Closed by 368c04091