add deinit functions to enter_deepsleep
This commit is contained in:
1 parent
1ae49f8263
commit
1950650bfb
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user