From 4e9a9a44c5cc82fff10980448aadbee30d927510 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sat, 30 Nov 2019 23:32:57 +0100 Subject: [PATCH] Save crash details to EEPROM with EspSaveCrash as previous commit didn't fix this issue --- README.md | 7 ++++--- main.ino | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3e6280..7e6c0fc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ More info on [Fuz wiki](https://wiki.fuz.re/doku.php?id=projets:fuz:presence_but ## Dependencies -Developped with the Arduino IDE, the script relies on the following third-party libraries: +Developed with the Arduino IDE, the script relies on the following third-party libraries: -* https://arduinojson.org/ v6 -* https://github.com/tzapu/WiFiManager \ No newline at end of file +* https://arduinojson.org/ v6 6.13.0 +* https://github.com/tzapu/WiFiManager 0.15.0-beta +* https://github.com/krzychb/EspSaveCrash 1.0.2 diff --git a/main.ino b/main.ino index 9ee7907..b30f143 100644 --- a/main.ino +++ b/main.ino @@ -9,6 +9,10 @@ #include //https://github.com/bblanchon/ArduinoJson #include // https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html + +#include "EspSaveCrash.h" //DEBUG https://github.com/krzychb/EspSaveCrash +//EspSaveCrash SaveCrash; + //for LED status #include Ticker ticker; @@ -335,6 +339,8 @@ void setup() { Serial.begin(115200); Serial.println(); + SaveCrash.print(); // DEBUG + //set relay pin as output pinMode(RELAY_PIN, OUTPUT); //set led pin as output