mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-30 04:01:45 -04: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:
parent
30ca545b52
commit
bd07e4e7e5
8 changed files with 34 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue