From f9dce03f2739d12c3f5f60cc312377b23fdf6c15 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Tue, 7 Nov 2017 23:26:59 +0100 Subject: [PATCH] edit connect status --- sumorobot.js | 1 + 1 file changed, 1 insertion(+) 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 */