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]; const last = module[module.length - 1];
return { return {
charge: last.charge, 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, lastUpdate: last.timestamp,
name: `Module ${i + 1}`, name: `Module ${i + 1}`,
temp: last.temp, temp: last.temp,