Fix TryQueryPermission

This commit is contained in:
2020-12-01 16:13:16 +01:00
parent e295afd899
commit 5a061d7600

View File

@@ -372,13 +372,13 @@ namespace WaveshareUARTFingerprintSensor
{ {
userPermission = (UserPermission)reponse.responseType; userPermission = (UserPermission)reponse.responseType;
return true; return userPermission != 0;
} }
} }
userPermission = default; userPermission = default;
return true; return false;
} }
public bool TryGetComparisonLevel(out byte comparisonLevel) public bool TryGetComparisonLevel(out byte comparisonLevel)