Add DeleteUser command

This commit is contained in:
2020-11-30 09:01:06 +01:00
parent 4287e00665
commit da763d5912

View File

@@ -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()
{