Sd+Serial pcapOpen() and logOpen() in buffer_obj

This commit is contained in:
Willy-JL
2023-12-31 18:31:30 +01:00
parent f6c27ed216
commit c61aaf95cd
6 changed files with 124 additions and 147 deletions

View File

@@ -140,22 +140,6 @@ void SDInterface::listDir(String str_dir){
}
}
void SDInterface::openCapture(String file_name) {
bool save_pcap = settings_obj.loadSetting<bool>("SavePCAP");
if ((this->supported) && (save_pcap)) {
buffer_obj.createPcapFile(&SD, file_name);
buffer_obj.open();
}
}
void SDInterface::openLog(String file_name) {
bool save_pcap = settings_obj.loadSetting<bool>("SavePCAP");
if ((this->supported) && (save_pcap)) {
buffer_obj.createPcapFile(&SD, file_name, true);
buffer_obj.open(true);
}
}
void SDInterface::runUpdate() {
#ifdef HAS_SCREEN
display_obj.tft.setTextWrap(false);