forked from marva/sumorobot-web
remove sensor logging
This commit is contained in:
parent
12e6ee31b2
commit
e0ffa54bbf
@ -63,7 +63,6 @@ Sumorobot.prototype.connect = function() {
|
|||||||
self.sensors = JSON.parse(data);
|
self.sensors = JSON.parse(data);
|
||||||
// When sensor data received
|
// When sensor data received
|
||||||
if (self.sensors['battery_voltage']) {
|
if (self.sensors['battery_voltage']) {
|
||||||
console.log(self.sensors);
|
|
||||||
if (self.sensors['battery_voltage'] > 4.0) {
|
if (self.sensors['battery_voltage'] > 4.0) {
|
||||||
$("#battery img").attr("src", "assets/img/battery_full.png");
|
$("#battery img").attr("src", "assets/img/battery_full.png");
|
||||||
} else if (self.sensors['battery_voltage'] > 3.1) {
|
} else if (self.sensors['battery_voltage'] > 3.1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user