add deinit functions to enter_deepsleep
This commit is contained in:
parent
1ae49f8263
commit
1950650bfb
@ -134,12 +134,12 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60,
|
|||||||
|
|
||||||
// shutdown MQTT safely
|
// shutdown MQTT safely
|
||||||
#ifdef HAS_MQTT
|
#ifdef HAS_MQTT
|
||||||
// to come
|
mqtt_deinit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// shutdown SPI safely
|
// shutdown SPI safely
|
||||||
#ifdef HAS_SPI
|
#ifdef HAS_SPI
|
||||||
// to come
|
spi_deinit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wait until rcommands are all done
|
// wait until rcommands are all done
|
||||||
|
Loading…
Reference in New Issue
Block a user