Browse Source

fix for no battery data

pull/43/head
Aaron Parecki 3 years ago
parent
commit
01f971c405
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      compass/public/assets/battery.js

+ 1
- 1
compass/public/assets/battery.js View File

@ -95,7 +95,7 @@ function showBatteryGraph(response) {
data: data.properties.map(function(d,i){
return {
x: new Date(d.unixtime*1000), // i,
y: ('battery_level' in d ? Math.round(d.battery_level * 100) : null),
y: ('battery_level' in d ? Math.round(d.battery_level * 100) : 0),
state: d.battery_state,
location: data.coordinates[i]
}

Loading…
Cancel
Save