Merge pull request #1567 from dalathegreat/bugfix/egmp-cellvoltage-count

Kia E-GMP: Update valid cellvoltage filter
This commit is contained in:
Daniel Öster 2025-09-25 14:36:39 +03:00 committed by GitHub
commit cdf6314bff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ uint16_t KiaEGmpBattery::selectSOC(uint16_t SOC_low, uint16_t SOC_high) {
void KiaEGmpBattery::set_cell_voltages(CAN_frame rx_frame, int start, int length, int startCell) {
for (size_t i = 0; i < length; i++) {
if ((rx_frame.data.u8[start + i] * 20) > 1000) {
if ((rx_frame.data.u8[start + i] * 20) > 2600) {
datalayer.battery.status.cell_voltages_mV[startCell + i] = (rx_frame.data.u8[start + i] * 20);
}
}