diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-01 17:20:05 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-01 17:20:05 +0100 |
| commit | 3088c3e904c1b4d9cb1ea3ba24f851356f6a2ab9 (patch) | |
| tree | 160a3412ff1486f953dc050ded09f5374e8d7fcd /include | |
| parent | a1d639e963eaad1f8d24d47cd004c22052166978 (diff) | |
feedback on buttons that write to disk
Diffstat (limited to 'include')
| -rw-r--r-- | include/administration_writer.hpp | 1 | ||||
| -rw-r--r-- | include/config.hpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/administration_writer.hpp b/include/administration_writer.hpp index 5c5ced2..488330b 100644 --- a/include/administration_writer.hpp +++ b/include/administration_writer.hpp @@ -27,6 +27,7 @@ namespace administration_writer { void set_write_completed_event_callback(write_completed_event ev); bool is_writing(); + bool last_write_result(); // Setup functions. bool create(); diff --git a/include/config.hpp b/include/config.hpp index dcc476b..defb972 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -16,8 +16,6 @@ #pragma once -#define WRITE_DELAY_SEC 0 - #include "stdint.h" #include "imgui.h" @@ -31,7 +29,9 @@ #define u32 uint32_t #define u64 uint64_t -#define SIMULATE_EMAIL 1 +#define SIMULATE_EMAIL 1 +#define SIMULATE_SLOW_DISK 1 +#define SIMULATE_WRITE_FAILURE 0 namespace config { static const char* PROGRAM_VERSION = "0.1.0"; // major.minor.patch |
