Expose charging session elapsed time in monitoring packet (v1.0.27).

CONN.ChargingTime ticks at 1 Hz during Charging; serial GET_STATUS reports elapsed min/sec instead of zero stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
raduet
2026-07-08 11:29:01 +02:00
co-authored by Cursor
parent 96826da0e0
commit af8bbd5275
11 changed files with 35570 additions and 32913 deletions
+2
View File
@@ -68,6 +68,7 @@ typedef struct{
uint16_t WantedCurrent; //0.1A/bit
CONN_Error_t chargingError; // 0 if okay
uint8_t EvConnected;
uint32_t ChargingTime; // seconds of active charging in current session
uint8_t hv_limit; // Limits PSU voltage to LV range when set
uint32_t hv_tick; // Timer for delayed HV limit switching
uint8_t hv_limit_count; // Anti-chatter counter for LV limit switching
@@ -82,3 +83,4 @@ extern ChargingConnector_t CONN;
void CONN_Init();
void CONN_Loop();
void CONN_GetElapsedForMonitoring(uint16_t *min, uint8_t *sec);