소스 검색

add main commit
0acac3018b6218ba500058fae2172746aabf9831
Fix Bug HeartbealInterval

Jessica Tseng 1 년 전
부모
커밋
5324ed6c36
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)
                         {