Fixed charge data
This commit is contained in:
parent
4382c37a3b
commit
0f07821317
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user