Legacy SD do_save is always true

This commit is contained in:
Willy-JL
2023-12-31 14:43:25 +01:00
parent fe08c145f6
commit d0f5d89980
2 changed files with 3 additions and 4 deletions

View File

@@ -143,7 +143,7 @@ void SDInterface::listDir(String str_dir){
}
void SDInterface::addPacket(uint8_t* buf, uint32_t len, bool log) {
if ((this->supported) && (this->do_save)) {
if (this->supported) {
buffer_obj.addPacket(buf, len, log);
}
}
@@ -300,11 +300,11 @@ bool SDInterface::checkDetectPin() {
}
void SDInterface::main() {
if ((this->supported) && (this->do_save)) {
if (this->supported) {
//Serial.println("Saving packet...");
buffer_obj.forceSave(&SD);
}
else if (!this->supported) {
else {
if (checkDetectPin()) {
delay(100);
this->initSD();