private void setWorkMode() { byte ReadMode = 0; if (_readerProfile.InventoryMode == InventoryMode.Answer || _readerProfile.InventoryMode == InventoryMode.Buffer) { ReadMode = 0; } else { ReadMode = 6; } fCmdRet = RWDev.SetWorkMode(ref fComAdr, ReadMode, frmcomportindex); }