Skip to content

Commit

Permalink
Merge pull request #1653 from OpenC3/de_binary
Browse files Browse the repository at this point in the history
Format binary output as hex
  • Loading branch information
ryanmelt authored Oct 24, 2024
2 parents f933f86 + 39ea961 commit 904875b
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 904875b

Please sign in to comment.