Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/PCAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -147,4 +147,4 @@ void PCAP::serialwrite_16(uint16_t n){
Serial.write(_buf, 2);
}


6 changes: 3 additions & 3 deletions src/PCAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand Down