瀏覽代碼

[Improve][AW-CCS][main.c]
2022-06-27 / EASON YANG
Action
1. Improve: checkReset() function. Logic improved for multi guns.

File
1. main.c
Action 1

FIRMWARE VERSION: B0.62.XX.XXXX.PX

8009 2 年之前
父節點
當前提交
d9ea2976f9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      EVSE/Projects/AW-CCS/Apps/main.c

+ 2 - 2
EVSE/Projects/AW-CCS/Apps/main.c

@@ -4251,7 +4251,7 @@ void checkReset()
 		if(ShmOCPP16Data->MsMsg.bits.ResetReq)
 		{
 			if((!isMode(0, SYS_MODE_CHARGING) && !isMode(0, SYS_MODE_TERMINATING)  && !isMode(0, SYS_MODE_COMPLETE)) &&
-			   (AC_QUANTITY>1?(!isMode(1, SYS_MODE_CHARGING) && !isMode(1, SYS_MODE_TERMINATING)  && !isMode(0, SYS_MODE_COMPLETE)):TRUE))
+			   (AC_QUANTITY>1?(!isMode(1, SYS_MODE_CHARGING) && !isMode(1, SYS_MODE_TERMINATING)  && !isMode(1, SYS_MODE_COMPLETE)):TRUE))
 			{
 				ShmOCPP16Data->MsMsg.bits.ResetReq = OFF;
 				sprintf((char*)ShmOCPP16Data->Reset.ResponseStatus, "Accepted");
@@ -4282,7 +4282,7 @@ void checkReset()
 		if(ShmOCPP20Data->MsMsg.bits.ResetReq)
 		{
 			if((!isMode(0, SYS_MODE_CHARGING) && !isMode(0, SYS_MODE_TERMINATING)  && !isMode(0, SYS_MODE_COMPLETE)) &&
-			   (AC_QUANTITY>1?(!isMode(1, SYS_MODE_CHARGING) && !isMode(1, SYS_MODE_TERMINATING)  && !isMode(0, SYS_MODE_COMPLETE)):TRUE))
+			   (AC_QUANTITY>1?(!isMode(1, SYS_MODE_CHARGING) && !isMode(1, SYS_MODE_TERMINATING)  && !isMode(1, SYS_MODE_COMPLETE)):TRUE))
 			{
 				ShmOCPP20Data->MsMsg.bits.ResetReq = OFF;
 				sprintf((char*)ShmOCPP20Data->Reset.Response_status, "Accepted");