icyphy / lf-buckler

Programming an nRF embedded board with a Berkeley Buckler daughter card using Lingua Franca.
BSD 2-Clause "Simplified" License
7 stars 0 forks source link

Optimize sleep behavior on NRF52 #15

Open lhstrh opened 2 years ago

lhstrh commented 2 years ago

In lf_nrf52_support.c, sleep_until returns -1 whenever it gets woken up while sleeping. It should only do this if the interruption produced a new event. Otherwise, it should just go back to waiting.