Clean code
This commit is contained in:
@@ -211,18 +211,6 @@ namespace WaveshareUARTFingerprintSensor
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Sleep()
|
|
||||||
{
|
|
||||||
_sleeping = true;
|
|
||||||
_rstPin.Write(GpioPinValue.Low);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Wake()
|
|
||||||
{
|
|
||||||
_sleeping = false;
|
|
||||||
_rstPin.Write(GpioPinValue.High);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ResponseType AddFingerprint(ushort userID, UserPermission userPermission)
|
public ResponseType AddFingerprint(ushort userID, UserPermission userPermission)
|
||||||
{
|
{
|
||||||
if (userID > MaxUserID)
|
if (userID > MaxUserID)
|
||||||
@@ -332,7 +320,6 @@ namespace WaveshareUARTFingerprintSensor
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Read a fingerprint and check if it matches with the specified user
|
/// Read a fingerprint and check if it matches with the specified user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -371,6 +358,19 @@ namespace WaveshareUARTFingerprintSensor
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Sleep()
|
||||||
|
{
|
||||||
|
_sleeping = true;
|
||||||
|
_rstPin.Write(GpioPinValue.Low);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Wake()
|
||||||
|
{
|
||||||
|
_sleeping = false;
|
||||||
|
_rstPin.Write(GpioPinValue.High);
|
||||||
|
}
|
||||||
|
|
||||||
private void OnWake()
|
private void OnWake()
|
||||||
{
|
{
|
||||||
if (_wakePin.Read())
|
if (_wakePin.Read())
|
||||||
|
|||||||
Reference in New Issue
Block a user