mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 20:47:42 +00:00
Check for filesystem errors in RecordView.
This commit is contained in:
@@ -37,6 +37,8 @@ namespace ui {
|
||||
|
||||
class RecordView : public View {
|
||||
public:
|
||||
std::function<void(std::string)> on_error;
|
||||
|
||||
enum FileType {
|
||||
RawS16 = 2,
|
||||
WAV = 3,
|
||||
@@ -71,6 +73,8 @@ private:
|
||||
|
||||
void on_tick_second();
|
||||
|
||||
void report_error(const std::string& message);
|
||||
|
||||
const std::string filename_stem_pattern;
|
||||
const FileType file_type;
|
||||
const size_t write_size;
|
||||
|
Reference in New Issue
Block a user