From d31492a0de8763e12f5718b1fe932471e4649218 Mon Sep 17 00:00:00 2001 From: pgp Date: Fri, 16 Apr 2021 10:34:22 +0200 Subject: [PATCH] SD debug, commentaires errorCode, change include wire.h --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1e9ca74..2b7b308 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,7 @@ #include "SD.h" #include "SPI.h" #include "RTClib.h" -#include +#include "Wire.h" #include "driver/pcnt.h" #include #include @@ -233,7 +233,7 @@ void writeFile(fs::FS &fs, const char * path, const char * message){ File file = fs.open(path, FILE_WRITE); if(!file){ Serial.println("Failed to open file for writing"); - errorCode(2); + //errorCode(2); return; } if(file.print(message)){ @@ -317,14 +317,14 @@ void sd_init() { if(cardType == CARD_NONE){ Serial.println("No SD card attached"); - errorCode(4); + //errorCode(4); return; } if(!SD.begin()){ Serial.println("Card Mount Failed"); - errorCode(3); + //errorCode(3); return; }