Remove Exception stuff

This commit is contained in:
Ollo 2021-11-28 16:02:08 +01:00
parent c5bce25afe
commit 9ff546b7b7
2 changed files with 2 additions and 14 deletions

View File

@ -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

View File

@ -641,7 +641,6 @@ void pumpActiveLoop()
void safeSetup()
{
throw std::runtime_error("Shit happened");
/* reduce power consumption */
setCpuFrequencyMhz(80);
@ -831,20 +830,9 @@ void safeSetup()
* Is called once, the controller is started
*/
void setup()
{
try
{
safeSetup();
}
catch (const std::exception &e)
{
Serial.printf("Exception thrown: \"%s\"", e.what());
}
catch (...)
{
Serial.println("Other exception thrown.");
}
}
void selfTest()
{