private void MifareInOrLeave(byte b1, byte b2) { var slot = b1 & 0xF0; var mediaStatus = b1 & 0x0F; if (mediaStatus == 1) { Log("进入, 读取序列号..."); _getSerialNumberTick = new FuncTimeout(); _getSerialNumberTick.StartLoop(500, () => { var sendData = MifarePackage.GetSendData("00 00"); CMD = 1; Write(sendData); }); } else { Log("离开"); StopAuto(); } ShowICType(b2); }