Block writes when buffer is not open

This commit is contained in:
Willy-JL
2024-01-02 12:03:20 +00:00
parent 9d92c5ceb5
commit 470f3f73c7

View File

@@ -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;
}
}