From 733d43e45ee081b3fb9ac3625c56e664e9b9a6e0 Mon Sep 17 00:00:00 2001 From: abe valle Date: Mon, 18 Dec 2023 18:29:01 -0600 Subject: [PATCH] replace SdFat for SdFs in both PCAP.cpp and PCAP.h --- src/PCAP.cpp | 6 +++--- src/PCAP.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PCAP.cpp b/src/PCAP.cpp index 31647d9..ac03113 100644 --- a/src/PCAP.cpp +++ b/src/PCAP.cpp @@ -39,7 +39,7 @@ void PCAP::startSerial(){ } #else /* open file on SD card (when exists) */ - bool PCAP::openFile(SdFat &SD){ + bool PCAP::openFile(SdFs &SD){ if(SD.exists(filename.c_str())) removeFile(SD); file = SD.open(filename, FILE_WRITE); if(file) { @@ -56,7 +56,7 @@ void PCAP::startSerial(){ } /* remove file from SD card */ - bool PCAP::removeFile(SdFat &SD){ + bool PCAP::removeFile(SdFs &SD){ return SD.remove(filename.c_str()); } #endif @@ -147,4 +147,4 @@ void PCAP::serialwrite_16(uint16_t n){ Serial.write(_buf, 2); } - + diff --git a/src/PCAP.h b/src/PCAP.h index 322a5d6..a90439d 100644 --- a/src/PCAP.h +++ b/src/PCAP.h @@ -28,8 +28,8 @@ class PCAP bool openFile(fs::FS &fs); bool removeFile(fs::FS &fs); #else - bool openFile(SdFat &SD); - bool removeFile(SdFat &SD); + bool openFile(SdFs &SD); + bool removeFile(SdFs &SD); #endif void flushFile(); @@ -49,7 +49,7 @@ class PCAP uint32_t network = 105; private: - File file; + FsFile file; void escape32(uint32_t n, uint8_t* buf); void escape16(uint16_t n, uint8_t* buf);