diff --git a/sumorobot.js b/sumorobot.js index bf16946..303c3df 100755 --- a/sumorobot.js +++ b/sumorobot.js @@ -57,6 +57,7 @@ Sumorobot.prototype.connect = function() { var battery = JSON.parse(data)["battery_voltage"]; battery = Math.round((((battery - 3.6) * 100) / (4.2 - 3.6))); //$("#battery").html(battery + ""); + $("#bar").html("Connected"); $("#bar").addClass("connected"); }; /* when there is an WebSocket error */