mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 00:59:28 +00:00
Extract general File class from LogFile.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user