mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-15 03:52:57 +00:00
Modify LogFile to open/close file on SD card status.
Previously, would only open on construction, which was only when the receiver mode changed, which wasn't all that useful.
This commit is contained in:
@@ -98,12 +98,10 @@ private:
|
||||
|
||||
class AISLogger {
|
||||
public:
|
||||
AISLogger();
|
||||
|
||||
void on_packet(const ais::Packet& packet);
|
||||
|
||||
private:
|
||||
LogFile log_file;
|
||||
LogFile log_file { "ais.txt" };
|
||||
};
|
||||
|
||||
namespace ui {
|
||||
|
||||
Reference in New Issue
Block a user