Esempio n. 1
0
        protected byte[] QueryProduct(byte[] cmd, int delay)
        {
            var address = BoardNum;
            var send    = WrapCmd(cmd, (byte)address);

            Log.LogDebug("send data:\t" + GetDataStr(send));
            var recv = Comm.Query(send, delay);

            Log.LogDebug("recv data:\t" + GetDataStr(recv));
            return(recv);
        }
Esempio n. 2
0
 private byte[] Query(byte[] cmd, int sleep = 0)
 {
     lock (_ovenLock)
     {
         return(_com.Query(cmd, sleep));
     }
 }