Make PIN verification failure a StatusWord case

Retry count is now u8, as  it cannot exceed 16 (being returned in the
lower half of SW2).
This commit is contained in:
Jack Grigg
2019-11-30 15:22:14 +00:00
parent 9fe363661e
commit 4b5cd8dd45
4 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ pub enum Error {
/// Wrong PIN
WrongPin {
/// Number of tries remaining
tries: u32,
tries: u8,
},
/// Invalid object