dont log when sending serial,

dont try to init sd if not in use
This commit is contained in:
theFeiter 2022-07-04 20:01:17 +02:00
parent f6debe8f00
commit 60242ab2cd

View File

@ -276,7 +276,6 @@ void sendESPNOW(uint8_t address) {
}
void sendSerial() {
logToSD();
DBG("Sending Serial.");
DynamicJsonDocument doc(24576);
for (int i = 0; i < ln; i++) {
@ -612,6 +611,7 @@ void begin_lora(){
#endif
}
void begin_SD(){
#ifdef USE_SD_LOG
DBG("Initializing SD card...");
if (!SD.begin(SD_SS)) {
@ -620,4 +620,5 @@ void begin_SD(){
}else{
DBG(" SD initialized.");
}
#endif
}