Add DeleteUser command
This commit is contained in:
@@ -300,6 +300,17 @@ namespace WaveshareUARTFingerprintSensor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool DeleteUser(ushort userID)
|
||||||
|
{
|
||||||
|
(byte high, byte low) = Utils.Split(userID);
|
||||||
|
|
||||||
|
if (TrySendAndReceive(CommandType.DeleteUser, high, low, 0, out var response, 1000))
|
||||||
|
{
|
||||||
|
return response.responseType == ResponseType.Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private void OnWake()
|
private void OnWake()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user