Browse Source

2020-07-22 / Alston Lin

Actions
1. Modify psu function for infy-power lib

Files
1. As follow commit history
Alston 4 years ago
parent
commit
d47a5fd64d

+ 3 - 1
EVSE/Modularization/Infypwr_PsuCommObj.c

@@ -572,7 +572,7 @@ void SetWalkInConfig(byte group, byte enable, byte sec)
 	SendCmdToPsu(cmd, data, sizeof(data));
 }
 
-void SetDirModulePresentOutput(byte group, int voltage, int current, byte _switch)
+void SetDirModulePresentOutput(byte group, int voltage, int current, byte _switch, byte _interRelay)
 {
 	byte data[8];
 	uint cmd = TEST_PRESENT_OUT;  //0x180100E5
@@ -587,6 +587,8 @@ void SetDirModulePresentOutput(byte group, int voltage, int current, byte _switc
 	data[3] = current & 0xFF;
 	// ¶} / Ãö
 	data[4] = _switch;
+	// Internal Relay
+	data[5] = _interRelay;
 
 	if (group == SYSTEM_CMD)
 		cmd |= INFYPWR_BROADCAST;

+ 1 - 1
EVSE/Modularization/Infypwr_PsuCommObj.h

@@ -138,7 +138,7 @@ void FanNoiseInfo(byte group, byte value);
 void SetWalkInConfig(byte group, byte enable, byte sec);
 
 /*Ver : 9.06 used*/
-void SetDirModulePresentOutput(byte group, int voltage, int current, byte _switch);
+void SetDirModulePresentOutput(byte group, int voltage, int current, byte _switch, byte _interRelay);
 /*Get Cmd*/
 void GetStatus(byte group);
 void GetFanSpeed(byte group);