From cbb6e34bafc2915b724ab09ebe9ee4516ad8a81b Mon Sep 17 00:00:00 2001 From: Chester Date: Mon, 14 Oct 2024 21:37:51 -1000 Subject: [PATCH] ran code formatting pre-commit --- .../webserver/advanced_battery_html.cpp | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/Software/src/devboard/webserver/advanced_battery_html.cpp b/Software/src/devboard/webserver/advanced_battery_html.cpp index 12b095c3..80a69cb4 100644 --- a/Software/src/devboard/webserver/advanced_battery_html.cpp +++ b/Software/src/devboard/webserver/advanced_battery_html.cpp @@ -22,27 +22,29 @@ String advanced_battery_processor(const String& var) { "UNKNOWN(10)", "UNKNOWN(11)", "UNKNOWN(12)"}; content += "

Contactor Status: " + String(contactorText[datalayer_extended.tesla.status_contactor]) + "

"; static const char* hvilStatusState[] = {"NOT OK", - "STATUS_OK", - "CURRENT_SOURCE_FAULT", - "INTERNAL_OPEN_FAULT", - "VEHICLE_OPEN_FAULT", - "PENTHOUSE_LID_OPEN_FAULT", - "UNKNOWN_LOCATION_OPEN_FAULT", - "VEHICLE_NODE_FAULT", - "NO_12V_SUPPLY", - "VEHICLE_OR_PENTHOUSE_LID_OPENFAULT", - "UNKNOWN(10)", - "UNKNOWN(11)", - "UNKNOWN(12)", - "UNKNOWN(13)", - "UNKNOWN(14)", - "UNKNOWN(15)"}; + "STATUS_OK", + "CURRENT_SOURCE_FAULT", + "INTERNAL_OPEN_FAULT", + "VEHICLE_OPEN_FAULT", + "PENTHOUSE_LID_OPEN_FAULT", + "UNKNOWN_LOCATION_OPEN_FAULT", + "VEHICLE_NODE_FAULT", + "NO_12V_SUPPLY", + "VEHICLE_OR_PENTHOUSE_LID_OPENFAULT", + "UNKNOWN(10)", + "UNKNOWN(11)", + "UNKNOWN(12)", + "UNKNOWN(13)", + "UNKNOWN(14)", + "UNKNOWN(15)"}; content += "

HVIL: " + String(hvilStatusState[datalayer_extended.tesla.hvil_status]) + "

"; static const char* contactorState[] = {"SNA", "OPEN", "PRECHARGE", "BLOCKED", - "PULLED_IN", "OPENING", "ECONOMIZED", "WELDED", - "UNKNOWN(8)", "UNKNOWN(9)", "UNKNOWN(10)", "UNKNOWN(11)"}; - content += "

Negative contactor: " + String(contactorState[datalayer_extended.tesla.packContNegativeState]) + "

"; - content += "

Positive contactor: " + String(contactorState[datalayer_extended.tesla.packContPositiveState]) + "

"; + "PULLED_IN", "OPENING", "ECONOMIZED", "WELDED", + "UNKNOWN(8)", "UNKNOWN(9)", "UNKNOWN(10)", "UNKNOWN(11)"}; + content += + "

Negative contactor: " + String(contactorState[datalayer_extended.tesla.packContNegativeState]) + "

"; + content += + "

Positive contactor: " + String(contactorState[datalayer_extended.tesla.packContPositiveState]) + "

"; static const char* falseTrue[] = {"False", "True"}; content += "

Closing allowed?: " + String(falseTrue[datalayer_extended.tesla.packCtrsClosingAllowed]) + "

"; content += "

Pyrotest: " + String(falseTrue[datalayer_extended.tesla.pyroTestInProgress]) + "

";