QuakeGod
2023-05-26 db25c9f050a690bbec032ef3f93e244c7ec2dbee
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);
      }