Skip to content

Commit

Permalink
fixed no data feedback/classification
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDant committed Apr 12, 2019
1 parent e0c868e commit b078708
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,30 @@ function update() {

} else {
// fill with 0 if no data
updateText("cur", 0, 0, 0, 0, 0, 0, 0, 0);
updateText("avg", 0, 0, 0, 0, 0, 0, 0, 0);
updateText("cur", {
"backScore": 0,
"seatScore": 0,
"classification": "_____",
"feedback": "",
"backLeft": 0,
"backRight": 0,
"backBottom": 0,
"seatLeft": 0,
"seatRight": 0,
"seatRear": 0
});
updateText("avg", {
"backScore": 0,
"seatScore": 0,
"classification": "_____",
"feedback": "",
"backLeft": 0,
"backRight": 0,
"backBottom": 0,
"seatLeft": 0,
"seatRight": 0,
"seatRear": 0
});
}
});
}
Expand Down

0 comments on commit b078708

Please sign in to comment.