Explorar o código

2022-08-10 / Alston Lin
Actions
1. Modify the judgment of obtaining the number of PSU
Files
1. Infypwr_PsuCommObj.c

Alston Lin %!s(int64=2) %!d(string=hai) anos
pai
achega
f44bf652b0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      EVSE/Modularization/Infypwr_PsuCommObj.c

+ 2 - 1
EVSE/Modularization/Infypwr_PsuCommObj.c

@@ -13,6 +13,7 @@
 #define MODULE_MAX_VOL		1000
 
 #define DEBUG_LIB						1
+#define CHECK_PSU_NUM_COUNT				30
 
 void PRINTF_LIB_FUNC(char *string, ...);
 float IEEE_754_to_float(const byte raw[4]);
@@ -314,7 +315,7 @@ void ReceiveDataFromCanBus()
 							}
 							else
 							{
-								if (checkTotalCount >= 10)
+								if (checkTotalCount >= CHECK_PSU_NUM_COUNT)
 								{
 									printf("***** Total Count = %d ***** \n", count);
 									_totalModuleCount = count;