Parcourir la source

add main commit
0acac3018b6218ba500058fae2172746aabf9831
Fix Bug HeartbealInterval

Jessica Tseng il y a 1 an
Parent
commit
5324ed6c36
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

+ 2 - 1
EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

@@ -246,7 +246,8 @@ internal partial class ProfileHandler
                         if (configValue != null)
                         {
                             int.TryParse(configValue, out heartbeat_interval);
-                        }
+							heartbeat_interval = heartbeat_interval == 0 ? GlobalConfig.GetHEARTBEAT_INTERVAL() : heartbeat_interval;
+						}
 
                         if (session.IsPending == true)
                         {