mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 11:44:31 +00:00
Debug sd card verbose by @gregoryfenton
This commit is contained in:
parent
e5992a6be8
commit
62652fdd8a
@ -46,6 +46,18 @@ public:
|
|||||||
Incomplete = 0,
|
Incomplete = 0,
|
||||||
OK = 1,
|
OK = 1,
|
||||||
};
|
};
|
||||||
|
std::string ResultStr[10] = {
|
||||||
|
"Compare",
|
||||||
|
"Read incomplete",
|
||||||
|
"Write incomplete",
|
||||||
|
"Abort",
|
||||||
|
"File Open Read",
|
||||||
|
"File Open Write",
|
||||||
|
"Heap",
|
||||||
|
"Thread",
|
||||||
|
"Incomplete",
|
||||||
|
"OK",
|
||||||
|
};
|
||||||
|
|
||||||
struct Stats {
|
struct Stats {
|
||||||
halrtcnt_t write_duration_min { 0 };
|
halrtcnt_t write_duration_min { 0 };
|
||||||
@ -423,7 +435,7 @@ void SDCardDebugView::on_test() {
|
|||||||
format_bytes_per_ticks_as_mib(stats.read_bytes, stats.read_test_duration)
|
format_bytes_per_ticks_as_mib(stats.read_bytes, stats.read_test_duration)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
text_test_write_time_value.set("Fail: " + to_string_dec_int(toUType(thread.result()), 4));
|
text_test_write_time_value.set("Fail: " + thread.ResultStr[thread.result() + 8]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user