|
@@ -15,7 +15,8 @@
|
|
|
//#define MODPS_FW_DATE ("20220730")
|
|
|
|
|
|
#define MODPS_FW_VER_NUM (2) //V/T0.02
|
|
|
-#define MODPS_FW_DATE ("20220812")
|
|
|
+#define MODPS_FW_DATE ("20220815")
|
|
|
+
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
#if (MODPS_FW_VER_NUM >= 1)
|
|
@@ -27,7 +28,9 @@
|
|
|
#define MODIFY_MODPS_LET_ON_HAND_ALL_USED
|
|
|
#define MODIFY_MODPS_REDUCE_DEBUG_LOG
|
|
|
#define FUNC_MODPS_WATCH_MODE
|
|
|
+#define FIX_MODPS_CONN_UPDATE_STATUS_LOOP_INDEX_INIT_VAL
|
|
|
#endif
|
|
|
+//-----------------------------------------------------------------------------
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
@@ -740,7 +743,11 @@ int conn_update_status(int socketFd, Connector_Info *connectorInfo, uint8_t conn
|
|
|
if(ShmPowerSharing->Connection_Info[idx].socketFd == socketFd)
|
|
|
{
|
|
|
ShmPowerSharing->Connection_Info[idx].connectorCount = connectorCount;
|
|
|
+#ifdef FIX_MODPS_CONN_UPDATE_STATUS_LOOP_INDEX_INIT_VAL
|
|
|
+ for(uint8_t gun_index=0;gun_index<connectorCount;gun_index++)
|
|
|
+#else
|
|
|
for(uint8_t gun_index;gun_index<connectorCount;gun_index++)
|
|
|
+#endif
|
|
|
{
|
|
|
if(!ShmPowerSharing->Connection_Info[idx].connectorInfo[gun_index].isGunConnected && connectorInfo[gun_index].isGunConnected)
|
|
|
{
|