Skip to content

Commit c7bec04

Browse files
Fix power_generation_total parsing
1 parent f83c468 commit c7bec04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/BtOneApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class BtOneApp extends BLEDevice {
113113
data['charging_amp_hours_today'] = dataView.getInt16(37);
114114
data['discharging_amp_hours_today'] = dataView.getInt16(39);
115115
data['power_generation_today'] = parseFloat((dataView.getInt16(41) * 0.001).toFixed(3));
116-
data['power_generation_total'] = parseFloat((dataView.getInt16(41) * 0.001).toFixed(3));
116+
data['power_generation_total'] = parseFloat((dataView.getInt32(59) * 0.001).toFixed(3));
117117
const chargingStatusCode = dataView.getInt8(68);
118118
data['charging_status'] = CHARGING_STATE[chargingStatusCode];
119119

0 commit comments

Comments
 (0)