All scanners save pcap files

This commit is contained in:
Just Call Me Koko
2020-03-18 15:30:08 -04:00
parent 9709bc3d3a
commit fc5d27b4b6
6 changed files with 24 additions and 9 deletions

View File

@@ -63,9 +63,9 @@ void SDInterface::addPacket(uint8_t* buf, uint32_t len) {
}
}
void SDInterface::openCapture() {
void SDInterface::openCapture(String file_name) {
if (this->supported)
buffer_obj.open(&SD);
buffer_obj.open(&SD, file_name);
}
void SDInterface::runUpdate() {
@@ -162,7 +162,7 @@ void SDInterface::performUpdate(Stream &updateSource, size_t updateSize) {
void SDInterface::main() {
if ((this->supported) && (this->do_save)) {
//Serial.println("Saving packet...");
buffer_obj.save(&SD);
buffer_obj.forceSave(&SD);
}
}