In `WaspPWR::deepSleep` there's first a call to `sleep_enable();` If there's an error the function exits without calling `sleep_disable()`: https://github.com/Libelium/waspmoteapi/blob/master/waspmote-api/WaspPWR.cpp#L523
In
WaspPWR::deepSleepthere's first a call tosleep_enable();If there's an error the function exits without calling
sleep_disable():https://github.com/Libelium/waspmoteapi/blob/master/waspmote-api/WaspPWR.cpp#L523