diff --git a/esp32/platformio.ini b/esp32/platformio.ini index 110308f..c6aac22 100644 --- a/esp32/platformio.ini +++ b/esp32/platformio.ini @@ -12,7 +12,7 @@ platform = espressif32 board = esp32doit-devkit-v1 framework = arduino -build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY -fexceptions -lstdc++-exc +build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY board_build.partitions = defaultWithSmallerSpiffs.csv diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 918f310..db6d8c5 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -641,7 +641,6 @@ void pumpActiveLoop() void safeSetup() { - throw std::runtime_error("Shit happened"); /* reduce power consumption */ setCpuFrequencyMhz(80); @@ -832,18 +831,7 @@ void safeSetup() */ void setup() { - try - { - safeSetup(); - } - catch (const std::exception &e) - { - Serial.printf("Exception thrown: \"%s\"", e.what()); - } - catch (...) - { - Serial.println("Other exception thrown."); - } + safeSetup(); } void selfTest()