mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems
MIT License
12 stars 11 forks source link

Adapt CatenaStm32L0Rtc::SleepForAlarm() for new STANDBY discipline #153

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

Although we won't use it, SleepForAlarm(SleepMode::Standby) should enter true STANDBY. We're changing the clients that used the older code.

terrillmoore commented 5 years ago

On reflection, this would be bad. SleepForAlarm(SleepMode::Standby) should always do a STOP, because people will expect it to return. If we need a true hibernate, we'll add StandbyForAlarm(), and mark it as __attribute__(noreturn).