Don't fail to open the card when GET_FEATURE_REQUEST returns with an error (this is a problem when running on jcardsim).
This commit is contained in:
parent
c643397989
commit
953ee58120
1 changed files with 5 additions and 4 deletions
|
@ -77,11 +77,12 @@ impl PcscClient {
|
|||
/// Obtain and store feature lists from reader (pinpad functionality).
|
||||
fn into_card_app(mut self) -> Result<CardApp> {
|
||||
// Get Features from reader (pinpad verify/modify)
|
||||
let feat = self.features()?;
|
||||
if let Ok(feat) = self.features() {
|
||||
for tlv in feat {
|
||||
log::debug!("Found reader feature {:?}", tlv);
|
||||
self.reader_caps.insert(tlv.tag().into(), tlv);
|
||||
}
|
||||
}
|
||||
|
||||
// Get initalized CardApp
|
||||
CardApp::initialize(Box::new(self))
|
||||
|
|
Loading…
Reference in a new issue