Src/main.c
@@ -304,7 +304,7 @@ ShowInitInfo(); KMem.LastScanTime = GetuS(); KMRunStat.WorkMode=0; KMRunStat.WorkMode=1; if (KMRunStat.WorkMode == 1){ InitPLC(); StartPLC(); @@ -378,8 +378,7 @@ #endif // pProgs = (stBinProg1 *) STORE_PRG_BASE; if ( KMRunStat.WorkMode==1 && bKBusMaster) if ( KMRunStat.WorkMode==1 ) //&& bKBusMaster) { if (KMRunStat.nBinProgBank == 0){ pProgs=(stBinProg1 *)STORE_PRG_BASE; @@ -387,6 +386,7 @@ pProgs=(stBinProg1 *)ALT_PRG_BASE; } nSizeProg1=KMRunStat.nBinProgSize; // pProgs=(stBinProg1 *)prog1; ProcessPLCBinProg(pProgs, nSizeProg1); }