From 1950650bfb9c35765dd00ad122b8fa9f23d1851c Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 23 Dec 2020 16:31:06 +0100 Subject: [PATCH] add deinit functions to enter_deepsleep --- src/reset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reset.cpp b/src/reset.cpp index 3a07d227..472ed02c 100644 --- a/src/reset.cpp +++ b/src/reset.cpp @@ -134,12 +134,12 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60, // shutdown MQTT safely #ifdef HAS_MQTT -// to come + mqtt_deinit(); #endif // shutdown SPI safely #ifdef HAS_SPI -// to come + spi_deinit(); #endif // wait until rcommands are all done