Commit 2f30933
committed
Prefer maxEnergy over batterySizeMax for capacity
Change battery capacity selection to prefer vehicle.drivetrain.batteryManagement.maxEnergy first, falling back to batterySizeMax and then existing session/metadata. Update comments and remove stale commented code; this ensures we use the more consistent maxEnergy value as the primary capacity source when available.1 parent c261657 commit 2f30933
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | | - | |
398 | | - | |
399 | | - | |
| 397 | + | |
| 398 | + | |
400 | 399 | | |
401 | | - | |
| 400 | + | |
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
| |||
0 commit comments