Skip to content

Commit 904875b

Browse files
authored
Merge pull request #1653 from OpenC3/de_binary
Format binary output as hex
2 parents f933f86 + 39ea961 commit 904875b

File tree

1 file changed

+5
-1
lines changed
  • openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor

1 file changed

+5
-1
lines changed

openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,11 @@ export default {
950950
} else {
951951
let rawVal = packet[key]['raw']
952952
if (Array.isArray(rawVal)) {
953-
row[columnIndex] = 'BINARY'
953+
let hexString = ''
954+
rawVal.forEach((val) => {
955+
hexString += val.toString(16)
956+
})
957+
row[columnIndex] = hexString
954958
} else {
955959
row[columnIndex] = "'" + rawVal + "'"
956960
}

0 commit comments

Comments
 (0)