Update sumorobot.js

This commit is contained in:
Silver Kuusik 2017-11-14 15:00:57 +01:00 committed by GitHub
parent bef66dfbda
commit 30b382b338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ Sumorobot.prototype.connect = function() {
var battery = JSON.parse(data)["battery_voltage"];
battery = Math.round((((battery - 3.0) * 100) / (4.2 - 3.0)));
$("#battery").html(battery + "%");
$("#bar").html("Battery");
//$("#bar").html("Battery");
$("#bar").addClass("connected");
};
/* when there is an WebSocket error */