mirror of
https://github.com/trussed-dev/iso7816.git
synced 2026-06-20 04:16:14 -07:00
be more lenient on interpreting chaining
This commit is contained in:
committed by
Nicolas Stalder
parent
1cf1d44364
commit
f280baad7a
+4
-12
@@ -88,18 +88,10 @@ impl Class {
|
||||
|
||||
#[inline]
|
||||
pub fn chain(&self) -> Chain {
|
||||
match self.range {
|
||||
Range::Interindustry(which) => match which {
|
||||
Interindustry::First | Interindustry::Further => {
|
||||
if self.cla & (1 << 4) != 0 {
|
||||
Chain::NotTheLast
|
||||
} else {
|
||||
Chain::LastOrOnly
|
||||
}
|
||||
}
|
||||
_ => Chain::Unknown,
|
||||
}
|
||||
_ => Chain::Unknown,
|
||||
if self.cla & (1 << 4) != 0 {
|
||||
Chain::NotTheLast
|
||||
} else {
|
||||
Chain::LastOrOnly
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user