Skip to content

Commit

Permalink
Removed check for EoF in IsValidFrame(), fixed null reference excepti…
Browse files Browse the repository at this point in the history
…on on reader disconnect, changed URL launching to not cease if a scanning error or non-URI tag is detected.
  • Loading branch information
dshalaby committed Jan 29, 2018
1 parent e17a71b commit da08fc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,6 @@ ModelManifest.xml
.paket/paket.exe

# FAKE - F# Make
.fake/
.fake/
/nuget.exe
/Package.nuspec
4 changes: 2 additions & 2 deletions Tcmp-SDK/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.5.2.0")]
[assembly: AssemblyFileVersion("0.5.2.0")]
[assembly: AssemblyVersion("0.5.3.0")]
[assembly: AssemblyFileVersion("0.5.3.0")]
2 changes: 0 additions & 2 deletions Tcmp-SDK/Tcmp/Communication/TappyReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ private void DataReceivedHandler(object sender, EventArgs e)
Debug.WriteLine("Data is being recieve");
if (!conn.IsOpen() && responseCallback != null)
responseCallback(null, new HardwareException("Connection to device is not open"));
else
Console.WriteLine("Bluegiga dongle receiving but no responseCallback assigned");

Debug.WriteLine($" Before: {BitConverter.ToString(buffer.ToArray())}");

Expand Down
5 changes: 2 additions & 3 deletions Tcmp-SDK/Tcmp/Communication/UsbConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override bool Connect(string portName)
}
catch
{
port.PortName = null;
port.PortName= " ";
return false;
}
}
Expand Down Expand Up @@ -104,8 +104,7 @@ public override int Read(List<byte> buffer)

public override bool getConnectionStatus()
{
throw new System.NotImplementedException();

return IsOpen();
}

public override bool getBlueGigaStatus()
Expand Down

0 comments on commit da08fc3

Please sign in to comment.