forked from achamaikin/CCSModuleSW30Web
Update to version 1.0.5. Controller initalization added
This commit is contained in:
@@ -43,7 +43,7 @@ extern "C" {
|
||||
/* USER CODE BEGIN EC */
|
||||
#define FW_VERSION_MAJOR 0x01
|
||||
#define FW_VERSION_MINOR 0x00
|
||||
#define FW_VERSION_PATCH 0x04
|
||||
#define FW_VERSION_PATCH 0x05
|
||||
/* USER CODE END EC */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
ChargingConnector_t CONN;
|
||||
CONN_State_t connectorState;
|
||||
extern uint8_t config_initialized;
|
||||
|
||||
void CONN_Init(){
|
||||
|
||||
@@ -47,7 +48,7 @@ void CONN_Task(){
|
||||
return;
|
||||
}
|
||||
|
||||
if (connectorState == Unknown) {
|
||||
if (connectorState == Unknown && config_initialized) {
|
||||
CONN_SetState(Unplugged);
|
||||
} else if (connectorState == Disabled && CONN.chargingError == CONN_NO_ERROR) {
|
||||
CONN_SetState(Unplugged);
|
||||
|
||||
Reference in New Issue
Block a user