From ac51c52c746f3dac119c7bf301fbb659cc0807ab Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Wed, 12 Oct 2022 19:52:44 +0200 Subject: [PATCH] Moved global classes to main --- ex/exception_dump.txt | 35 +++++++++++++++++++++++++++++++++++ src/helper.cpp | 6 ++---- src/main.cpp | 2 ++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 ex/exception_dump.txt diff --git a/ex/exception_dump.txt b/ex/exception_dump.txt new file mode 100644 index 0000000..9182ef8 --- /dev/null +++ b/ex/exception_dump.txt @@ -0,0 +1,35 @@ + +User exception (panic/abort/assert) +--------------- CUT HERE FOR EXCEPTION DECODER --------------- + +Panic core_esp8266_main.cpp:215 loop_task + +>>>stack>>> + +ctx: sys +sp: 3fffff10 end: 3fffffb0 offset: 0000 +3fffff10: 00000000 02ac3bd9 40280793 3ffeaec4 +3fffff20: 000000fe 00000000 00000000 00000000 +3fffff30: 00000000 00000000 00000000 3fff1edc +3fffff40: 3fff1fa8 3fff1fa8 3fff0280 3fff1e94 +3fffff50: 3fffdad0 00000000 3ffe8648 4022d992 +3fffff60: 402854b2 3fffdab0 00000000 4022d9ff +3fffff70: 00000000 3fffdad0 3fff1e94 4022d0d8 +3fffff80: 40000f49 40000f49 3fffdab0 40000f49 +3fffff90: 40000e19 000b5a21 00000000 00000005 +3fffffa0: 00000000 aa55aa55 000000d0 401057f9 +<< #include -SerialDebug mySerial; -BatteryVoltage myBatteryVoltage; - // tcp cleanup, to avoid memory crash. struct tcp_pcb; extern struct tcp_pcb* tcp_tw_pcbs; @@ -181,8 +178,9 @@ void printBuildOptions() { SerialDebug::SerialDebug(const uint32_t serialSpeed) { // Start serial with auto-detected rate (default to defined BAUD) - Serial.flush(); + //Serial.flush(); Serial.begin(serialSpeed); + Serial.println("Serial connection established"); getLog()->begin(LOG_LEVEL, &Serial, true); getLog()->setPrefix(printTimestamp); diff --git a/src/main.cpp b/src/main.cpp index f86d9d6..2c051fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,6 +33,8 @@ SOFTWARE. #include // #define FORCE_GRAVITY_MODE +SerialDebug mySerial; +BatteryVoltage myBatteryVoltage; // Define constats for this program #ifdef DEACTIVATE_SLEEPMODE