main: set mqtt platform bits outside of main.cpp
This commit is contained in:
parent
e375c9d890
commit
1d1c5781e2
@ -96,6 +96,7 @@ Platform::preSetup()
|
|||||||
#else
|
#else
|
||||||
#ifdef CONFIG_MQTT
|
#ifdef CONFIG_MQTT
|
||||||
Log.begin(LOG_LEVEL_TRACE, Static<MQTTTelemetry>::instance()->logPrinter());
|
Log.begin(LOG_LEVEL_TRACE, Static<MQTTTelemetry>::instance()->logPrinter());
|
||||||
|
Static<MQTTTelemetry>::instance()->setSequencer(Static<Sequencer>::instance());
|
||||||
#else
|
#else
|
||||||
Log.begin(LOG_LEVEL_TRACE, &Serial);
|
Log.begin(LOG_LEVEL_TRACE, &Serial);
|
||||||
#endif
|
#endif
|
||||||
|
@ -428,9 +428,6 @@ MainLoop* runner = &safeModeApp;
|
|||||||
void setup() {
|
void setup() {
|
||||||
// Turn on,
|
// Turn on,
|
||||||
Platform::preSetup();
|
Platform::preSetup();
|
||||||
#ifdef CONFIG_MQTT
|
|
||||||
Static<MQTTTelemetry>::instance()->setSequencer(&sequencer);
|
|
||||||
#endif // CONFIG_MQTT
|
|
||||||
Log.notice(u8"🐛 Booting Renderbug!");
|
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"🐞 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());
|
Log.notice(u8"📡 Platform %s version %s", Platform::name(), Platform::version());
|
||||||
|
Loading…
Reference in New Issue
Block a user