Fix ReadData

Stupid serial
This commit is contained in:
2020-12-01 15:53:13 +01:00
parent 80e67f3afc
commit 6f5ff3ce00

View File

@@ -166,6 +166,9 @@ namespace WaveshareUARTFingerprintSensor
private byte[] ReadData(int length)
{
// Needed to work
Thread.Sleep(150);
byte first = (byte)_serialPort.ReadByte();
if (first != PacketSeparator)