Skip to content

Commit

Permalink
Format binary output as hex
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Oct 21, 2024
1 parent 6c85e08 commit 39ea961
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,11 @@ export default {
} else {
let rawVal = packet[key]['raw']
if (Array.isArray(rawVal)) {
row[columnIndex] = 'BINARY'
let hexString = ''
rawVal.forEach((val) => {
hexString += val.toString(16)
})
row[columnIndex] = hexString
} else {
row[columnIndex] = "'" + rawVal + "'"
}
Expand Down

0 comments on commit 39ea961

Please sign in to comment.