Skip to content

Commit

Permalink
Block writes when buffer is not open
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Jan 2, 2024
1 parent 9d92c5c commit 470f3f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp32_marauder/Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void Buffer::openFile(String file_name, fs::FS* fs, bool serial, bool is_pcap) {
}
if (this->fs || this->serial) {
open(is_pcap);
} else {
writing = false;
}
}

Expand Down

0 comments on commit 470f3f7

Please sign in to comment.