From 4783d57833df94195ac15b04910eaf5332d8cdc1 Mon Sep 17 00:00:00 2001 From: valentin Date: Thu, 22 Aug 2024 15:38:52 +0200 Subject: [PATCH] Fix: sound at startup --- src/main.cpp | 830 ++++++++++++++++++++++++++------------------------- 1 file changed, 420 insertions(+), 410 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f3630d48..4f95bafa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,410 +1,420 @@ -#include "core/globals.h" - -#include -#include -#include -#include -#include -#include "esp32-hal-psram.h" - - -SPIClass sdcardSPI; -// Public Globals Variables -unsigned long previousMillis = millis(); -int prog_handler; // 0 - Flash, 1 - LittleFS, 3 - Download -int rotation; -int IrTx; -int IrRx; -int RfTx; -int RfRx; -int RfModule=0; // 0 - single-pinned, 1 - CC1101+SPI -float RfFreq=433.92; -int RfidModule=M5_RFID2_MODULE; -String cachedPassword=""; -int dimmerSet; -int bright=100; -int tmz=3; -int devMode=0; -bool sdcardMounted = false; -bool gpsConnected = false; -bool wifiConnected = false; -bool BLEConnected = false; -bool returnToMenu; -bool isSleeping = false; -bool isScreenOff = false; -bool dimmer = false; -char timeStr[10]; -time_t localTime; -struct tm* timeInfo; -#if defined(HAS_RTC) - cplus_RTC _rtc; - bool clock_set = true; -#else - ESP32Time rtc; - bool clock_set = false; -#endif -JsonDocument settings; - -String wui_usr="admin"; -String wui_pwd="bruce"; -String ssid; -String pwd; -std::vector