Fixed charge data

This commit is contained in:
Zakary Timson 2019-08-03 14:02:18 -04:00
parent 4382c37a3b
commit 0f07821317

View File

@ -35,7 +35,7 @@ export class BatteryService {
const last = module[module.length - 1];
return {
charge: last.charge,
chargeHistory: module.map(row => ({name: row.timestamp, value: row.temp})),
chargeHistory: module.map(row => ({name: row.timestamp, value: row.charge})),
lastUpdate: last.timestamp,
name: `Module ${i + 1}`,
temp: last.temp,