Commit f51fe40e LN

rfid代码更新

1 个父辈 a07426ab
......@@ -82,7 +82,6 @@
<Compile Include="bean\StoreStep.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="RFID\RFID.cs" />
<Compile Include="RFID\RFIDManager.cs" />
<Compile Include="RFID\RFIDReader.cs" />
</ItemGroup>
......
......@@ -17,7 +17,7 @@ namespace OnlineStore.DeviceLibrary
{
try
{
RFIDReader.Open(null, iparray);
RFIDReader.Open( iparray);
}catch(Exception ex)
{
LogUtil.error("Open 出错:" + ex.ToString());
......@@ -31,14 +31,8 @@ namespace OnlineStore.DeviceLibrary
if (String.IsNullOrEmpty(ip).Equals(false))
{
byte[] bdata = null;
if (isClear)
{
bdata = RFIDReader.ReadAndClear(ip);
}
else
{
bdata = RFIDReader.Read(ip);
}
bdata = RFIDReader.Read(ip, isClear);
if (bdata == null)
{
LogUtil.error("RFID [ " + ip + " ] 读到数据=null");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!