Save crash details to EEPROM with EspSaveCrash as previous commit didn't fix this issue

This commit is contained in:
Lomanic 2019-11-30 23:32:57 +01:00
parent b7ec6df8ec
commit 4e9a9a44c5
2 changed files with 10 additions and 3 deletions

View File

@ -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
* https://arduinojson.org/ v6 6.13.0
* https://github.com/tzapu/WiFiManager 0.15.0-beta
* https://github.com/krzychb/EspSaveCrash 1.0.2

View File

@ -9,6 +9,10 @@
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
#include <ESP8266mDNS.h> // 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.h>
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