Skip to content

Commit 81cc747

Browse files
authored
Added code for evented messages
1 parent 95bef5a commit 81cc747

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

openxc/tools/static/js/dashboard.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ $(document).ready(function() {
1010
msg.name = 'Raw-' + msg.bus + '-0x' + msg.id.toString(16);
1111
msg.value = msg.data;
1212
}
13+
if (msg.hasOwnProperty('event')){
14+
msg.value = msg.value + '_' + msg.event
15+
}
1316
if (!(msg.name in dataPoints)) {
1417
dataPoints[msg.name] = {
1518
current_data: undefined,

0 commit comments

Comments
 (0)