Skip to content

Commit

Permalink
Added code for evented messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pjt0620 committed Dec 18, 2019
1 parent 95bef5a commit 81cc747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openxc/tools/static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ $(document).ready(function() {
msg.name = 'Raw-' + msg.bus + '-0x' + msg.id.toString(16);
msg.value = msg.data;
}
if (msg.hasOwnProperty('event')){
msg.value = msg.value + '_' + msg.event
}
if (!(msg.name in dataPoints)) {
dataPoints[msg.name] = {
current_data: undefined,
Expand Down

0 comments on commit 81cc747

Please sign in to comment.