From 39ea96124660baa908b7a83ab59ebcaf55957d0d Mon Sep 17 00:00:00 2001 From: Jason Thomas Date: Mon, 21 Oct 2024 13:47:00 -0600 Subject: [PATCH] Format binary output as hex --- .../src/tools/DataExtractor/DataExtractor.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue b/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue index 0f2a633ce..65d098890 100644 --- a/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue +++ b/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue @@ -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 + "'" }