mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Add contactor state to more battery info
This commit is contained in:
parent
29e6f52c4c
commit
0aad11d9bc
3 changed files with 13 additions and 2 deletions
|
@ -384,7 +384,16 @@ class EcmpHtmlRenderer : public BatteryHtmlRenderer {
|
|||
"</h4>";
|
||||
|
||||
if (datalayer_extended.stellantisECMP.MysteryVan) {
|
||||
content += "<h4>MysteryVan platform detected!</h4>";
|
||||
content += "<h3>MysteryVan platform detected!</h3>";
|
||||
content += "<h4>Contactor State: ";
|
||||
if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 0) {
|
||||
content += "Open";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 1) {
|
||||
content += "Precharge";
|
||||
} else if (datalayer_extended.stellantisECMP.CONTACTORS_STATE == 2) {
|
||||
content += "Closed";
|
||||
}
|
||||
content += "</h4>";
|
||||
content += "<h4>Crash Memorized: ";
|
||||
if (datalayer_extended.stellantisECMP.CrashMemorized) {
|
||||
content += "Yes</h4>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue