Beispiel #1
0
 /// <summary>
 /// 设置油价牌卡上的小数点
 /// </summary>
 /// <param name="iAddr">ID</param>
 /// <param name="iArrDecmails">每块牌上的小数点位置(一个控制卡可以接N个显示屏)</param>
 /// <returns></returns>
 public bool GetCardDecmial(int iAddr, ref int[] iArrDecmails)
 {
     ClearOldReadBuf();
     byte[] bBuf = GLLedProtocol.MakeCmdLedGetDecimal(iAddr);
     Write(bBuf, 0, bBuf.Length);
     Thread.Sleep(1000);
     byte[] bRead = Read();
     if (bRead == null)
     {
         LogMgr.WriteErrorDefSys("GetCfg RecBuf is Null");
         return(false);
     }
     return(GLLedProtocol.AnalyeseRecGetDecmail(bRead, iAddr, ref iArrDecmails));
 }