Fix ReadData
Stupid serial
This commit is contained in:
@@ -166,6 +166,9 @@ namespace WaveshareUARTFingerprintSensor
|
|||||||
|
|
||||||
private byte[] ReadData(int length)
|
private byte[] ReadData(int length)
|
||||||
{
|
{
|
||||||
|
// Needed to work
|
||||||
|
Thread.Sleep(150);
|
||||||
|
|
||||||
byte first = (byte)_serialPort.ReadByte();
|
byte first = (byte)_serialPort.ReadByte();
|
||||||
|
|
||||||
if (first != PacketSeparator)
|
if (first != PacketSeparator)
|
||||||
|
|||||||
Reference in New Issue
Block a user