From ee8de57b54c73007019c9a6e07fdd50df02761a3 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Mon, 5 May 2025 22:12:01 -0500 Subject: [PATCH] No accelerometerThread on STM32 --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 7ce993bf1..452cb3526 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1300,9 +1300,12 @@ void setup() LOG_DEBUG("Free heap : %7d bytes", ESP.getFreeHeap()); LOG_DEBUG("Free PSRAM : %7d bytes", ESP.getFreePsram()); #endif +#if !defined(ARCH_STM32WL) if (accelerometerThread) accelerometerThread->calibrate(30); +#endif } + #endif uint32_t rebootAtMsec; // If not zero we will reboot at this time (used to reboot shortly after the update completes) uint32_t shutdownAtMsec; // If not zero we will shutdown at this time (used to shutdown from python or mobile client)