Sd+Serial save() in buffer_obj / out of sd_obj

This commit is contained in:
Willy-JL
2024-01-02 12:06:33 +00:00
parent c61aaf95cd
commit 2004a9ecb4
5 changed files with 24 additions and 94 deletions
+1 -5
View File
@@ -276,11 +276,7 @@ bool SDInterface::checkDetectPin() {
}
void SDInterface::main() {
if (this->supported) {
//Serial.println("Saving packet...");
buffer_obj.forceSave(&SD);
}
else {
if (!this->supported) {
if (checkDetectPin()) {
delay(100);
this->initSD();