Added WRITE_PACKETS_SERIAL macro to transmit packets via serial (1) instead of using SD card

This commit is contained in:
tcpassos
2023-03-01 08:42:08 -03:00
parent 592b7f68e8
commit e028c39470
10 changed files with 231 additions and 149 deletions

View File

@@ -77,7 +77,8 @@ void SDInterface::addPacket(uint8_t* buf, uint32_t len) {
void SDInterface::openCapture(String file_name) {
if (this->supported)
buffer_obj.open(&SD, file_name);
buffer_obj.createPcapFile(&SD, file_name);
buffer_obj.open();
}
void SDInterface::runUpdate() {