Prechádzať zdrojové kódy

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

Alston Lin 2 rokov pred
rodič
commit
f44bf652b0
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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;