advanced record reading

This commit is contained in:
merlokk committed 2021-07-27 20:00:18 +03:00
1 parent 882e96a3ce
commit 5a7e507de2
3 files changed
+28 -8

No files matched your search

+5 -3
View File
@@ -249,9 +249,11 @@ void print_buffer(const uint8_t *data, const size_t len, int level) {
print_buffer_ex(data, len, level, 16);
}
void print_buffer_with_offset(const uint8_t *data, const size_t len, int offset) {
PrintAndLogEx(INFO, " Offset | Data | Ascii");
PrintAndLogEx(INFO, "----------------------------------------------------------------------------");
void print_buffer_with_offset(const uint8_t *data, const size_t len, int offset, bool print_header) {
if (print_header) {
PrintAndLogEx(INFO, " Offset | Data | Ascii");
PrintAndLogEx(INFO, "----------------------------------------------------------------------------");
}
for (uint32_t i = 0; i < len; i += 16) {
uint32_t l = len - i;