From 924673ada3890c6d0823af84f7b0aed7b1dfda39 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Wed, 20 Dec 2023 12:11:49 +0100 Subject: [PATCH] main: move startup strings to flash --- src/main.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4db5c39..4e0c1a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -83,24 +83,24 @@ MainLoop* runner = &SafeMode::safeModeApp; void setup() { // Turn on, Platform::preSetup(); - Log.notice(u8"šŸ› Booting Renderbug!"); - Log.notice(u8"šŸž I am built for %d LEDs on pin %d", HardwareConfig::MAX_LED_NUM, RENDERBUG_LED_PIN); - Log.notice(u8"šŸ“” Platform %s version %s", Platform::name(), Platform::version()); + Log.notice(F(u8"\n\n\nšŸ› Booting Renderbug!")); + Log.notice(F(u8"šŸž I am built for %d LEDs on pin %d"), HardwareConfig::MAX_LED_NUM, RENDERBUG_LED_PIN); + Log.notice(F(u8"šŸ“” Platform %s version %s"), Platform::name(), Platform::version()); - Log.notice(u8"Setting timezone to +2 (CEST)"); + Log.notice(F(u8"Setting timezone to +2 (CEST)")); Platform::setTimezone(+1); - Log.trace(u8"Setting up platform..."); + Log.trace(F(u8"Setting up platform...")); Platform::setup(); Platform::bootSplash(); - Log.notice(u8"šŸ’” Starting FastLED on %d LEDs...", HardwareConfig::MAX_LED_NUM); + Log.notice(F(u8"šŸ’” Starting FastLED on %d LEDs..."), HardwareConfig::MAX_LED_NUM); Platform::addLEDs(leds, HardwareConfig::MAX_LED_NUM); // Tune in, if (Platform::bootopts.isSafeMode) { - Log.warning(u8"āš ļø Starting Figment in safe mode!!!"); + Log.warning(F(u8"āš ļø Starting Figment in safe mode!!!")); runner = &SafeMode::safeModeApp; for(auto task : runner->scheduler.tasks) { task->state = Task::Running; @@ -108,10 +108,10 @@ void setup() { FastLED.showColor(CRGB(255, 0, 0)); FastLED.show(); } else { - Log.notice(u8"šŸŒŒ Starting Figment..."); + Log.notice(F(u8"šŸŒŒ Starting Figment...")); if (Platform::bootopts.isSetup) { - Log.warning(u8"šŸ”§ Booting up into setup profile!!!"); + Log.warning(F(u8"šŸ”§ Booting up into setup profile!!!")); Static::instance()->overrideProfile("setup"); } @@ -124,8 +124,8 @@ void setup() { Serial.flush(); runner->start(); - Log.notice(u8"šŸ’½ %l bytes of free RAM", Platform::freeRam()); - Log.notice(u8"šŸš€ Setup complete! Ready to rock and roll."); + Log.notice(F(u8"šŸ’½ %l bytes of free RAM"), Platform::freeRam()); + Log.notice(F(u8"šŸš€ Setup complete! Ready to rock and roll.")); Serial.flush(); }