mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 18:00:28 -04:00
Debug sd card verbose by @gregoryfenton
This commit is contained in:
parent
e5992a6be8
commit
62652fdd8a
1 changed files with 13 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue