Fix battery statistics
This commit is contained in:
parent
67b8238b29
commit
4904453b00
1 changed files with 6 additions and 6 deletions
|
@ -389,18 +389,18 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
|
|||
break;
|
||||
}
|
||||
case 0x9243: { //Battery energy charged kWh
|
||||
StandardMetrics.ms_v_charge_kwh_grid_total->SetValue((float) (CAN_UINT24(0)));
|
||||
ESP_LOGD(TAG, "9243 LBC ms_v_charge_kwh_grid_total: %d", CAN_UINT24(0));
|
||||
StandardMetrics.ms_v_charge_kwh_grid_total->SetValue((float) (CAN_UINT32(0) * 0.001));
|
||||
ESP_LOGD(TAG, "9243 LBC ms_v_charge_kwh_grid_total: %f", CAN_UINT32(0) * 0.001);
|
||||
break;
|
||||
}
|
||||
case 0x9244: { //Battery energy discharged kWh
|
||||
StandardMetrics.ms_v_bat_energy_used->SetValue((float) (CAN_UINT24(0)));
|
||||
ESP_LOGD(TAG, "9244 LBC ms_v_bat_energy_used: %d", CAN_UINT24(0));
|
||||
StandardMetrics.ms_v_bat_energy_used->SetValue((float) (CAN_UINT32(0) * 0.001));
|
||||
ESP_LOGD(TAG, "9244 LBC ms_v_bat_energy_used: %f", CAN_UINT32(0) * 0.001);
|
||||
break;
|
||||
}
|
||||
case 0x9246: { //Battery energy regenerated kWh
|
||||
StandardMetrics.ms_v_bat_energy_recd->SetValue((float) (CAN_UINT24(0)));
|
||||
ESP_LOGD(TAG, "9246 LBC ms_v_bat_energy_recd: %d", CAN_UINT24(0));
|
||||
StandardMetrics.ms_v_bat_energy_recd->SetValue((float) (CAN_UINT32(0) * 0.001));
|
||||
ESP_LOGD(TAG, "9246 LBC ms_v_bat_energy_recd: %f", CAN_UINT32(0) * 0.001);
|
||||
break;
|
||||
}
|
||||
case 0x04: {
|
||||
|
|
Loading…
Reference in a new issue