Remove Exception stuff
This commit is contained in:
parent
c5bce25afe
commit
9ff546b7b7
@ -12,7 +12,7 @@
|
|||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32doit-devkit-v1
|
board = esp32doit-devkit-v1
|
||||||
framework = arduino
|
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
|
board_build.partitions = defaultWithSmallerSpiffs.csv
|
||||||
|
|
||||||
|
|
||||||
|
@ -641,7 +641,6 @@ void pumpActiveLoop()
|
|||||||
|
|
||||||
void safeSetup()
|
void safeSetup()
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Shit happened");
|
|
||||||
/* reduce power consumption */
|
/* reduce power consumption */
|
||||||
setCpuFrequencyMhz(80);
|
setCpuFrequencyMhz(80);
|
||||||
|
|
||||||
@ -832,18 +831,7 @@ void safeSetup()
|
|||||||
*/
|
*/
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
try
|
safeSetup();
|
||||||
{
|
|
||||||
safeSetup();
|
|
||||||
}
|
|
||||||
catch (const std::exception &e)
|
|
||||||
{
|
|
||||||
Serial.printf("Exception thrown: \"%s\"", e.what());
|
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
Serial.println("Other exception thrown.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void selfTest()
|
void selfTest()
|
||||||
|
Loading…
Reference in New Issue
Block a user