nerves-project / nerves_runtime

Small, general initialization and utilities for Nerves devices
Apache License 2.0
57 stars 23 forks source link

Sleep forever after a poweroff similar to rebooting #315

Closed oestrich closed 11 months ago

oestrich commented 11 months ago

:init.stop() will return and callers don't expect this function to ever return. Also update the comment in reboot to be similar to the other sleep comments.

fhunleth commented 11 months ago

Thanks. After staring at the code around it, I wanted to bulletproof the whole thing some more just in case the guarded reboot/poweroff failed. The update is in #317 .