Skip to content

Commit

Permalink
display hex values in opd template page
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Jul 16, 2023
1 parent 9ef5c22 commit d945121
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions oresat_c3/templates/opd.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
0x1A: 'ACS',
0x1B: 'DxWiFi',
0x1C: 'Star Tracker',
0x1D: 'Battery 2',
0x1D: 'CFC Processor',
0x1E: 'CFC Sensor',
0x1F: 'CFC Processor',
0x1F: 'Battery 2',
0x20: 'Reaction Wheel 1',
0x21: 'Reaction Wheel 2',
0x22: 'Reaction Wheel 3',
Expand All @@ -66,7 +66,8 @@
let newRow = tbodyRef.insertRow();

let newCell = newRow.insertCell();
let newText = document.createTextNode(NODES[key]);
let upperHex = parseInt(key).toString(16).toUpperCase()
let newText = document.createTextNode(`${NODES[key]} (0x${upperHex})`);
newCell.appendChild(newText);

let newCell2 = newRow.insertCell();
Expand Down

0 comments on commit d945121

Please sign in to comment.