From 1d1c5781e2c47510b403cb0c2d09effde3d674e8 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sat, 18 Feb 2023 16:30:41 +0100 Subject: [PATCH] main: set mqtt platform bits outside of main.cpp --- src/Platform.cpp | 1 + src/main.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Platform.cpp b/src/Platform.cpp index 20dcfa3..3467e9a 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -96,6 +96,7 @@ Platform::preSetup() #else #ifdef CONFIG_MQTT Log.begin(LOG_LEVEL_TRACE, Static::instance()->logPrinter()); + Static::instance()->setSequencer(Static::instance()); #else Log.begin(LOG_LEVEL_TRACE, &Serial); #endif diff --git a/src/main.cpp b/src/main.cpp index 992224a..f899328 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -428,9 +428,6 @@ MainLoop* runner = &safeModeApp; void setup() { // Turn on, Platform::preSetup(); -#ifdef CONFIG_MQTT - Static::instance()->setSequencer(&sequencer); -#endif // CONFIG_MQTT Log.notice(u8"🐛 Booting Renderbug!"); Log.notice(u8"🐞 I am built for %d LEDs running on %dmA", HardwareConfig::MAX_LED_NUM, PSU_MILLIAMPS); Log.notice(u8"📡 Platform %s version %s", Platform::name(), Platform::version());