advanced record reading
This commit is contained in:
1 parent
882e96a3ce
commit
5a7e507de2
3 files changed
+28
-8
No files matched your search
+5
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user