mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 12:12:16 -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
|
@ -80,10 +80,6 @@ static std::string navigational_status(const unsigned int value) {
|
|||
} /* namespace format */
|
||||
} /* namespace ais */
|
||||
|
||||
AISLogger::AISLogger() {
|
||||
log_file.open_for_append("ais.txt");
|
||||
}
|
||||
|
||||
void AISLogger::on_packet(const ais::Packet& packet) {
|
||||
// TODO: Unstuff here, not in baseband!
|
||||
if( log_file.is_ready() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue