mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 13:18:55 -04:00
Extract general File class from LogFile.
This commit is contained in:
parent
1aa391bac8
commit
fc7a7d753d
5 changed files with 132 additions and 31 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "ff.h"
|
||||
#include "file.hpp"
|
||||
#include "sd_card.hpp"
|
||||
|
||||
#include "lpc43xx_cpp.hpp"
|
||||
|
@ -35,8 +35,6 @@ public:
|
|||
LogFile(const std::string file_path);
|
||||
~LogFile();
|
||||
|
||||
bool open();
|
||||
bool close();
|
||||
bool is_ready();
|
||||
|
||||
bool write_entry(const rtc::RTC& datetime, const std::string& entry);
|
||||
|
@ -44,7 +42,7 @@ public:
|
|||
private:
|
||||
const std::string file_path;
|
||||
|
||||
FIL f;
|
||||
File file;
|
||||
|
||||
SignalToken sd_card_status_signal_token;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue