mirror of
https://gitlab.com/fabinfra/fabaccess/nfc_rs.git
synced 2025-03-12 06:41:46 +01:00
fix: remove no-op map_err call
This commit is contained in:
parent
2717df14b2
commit
425a1a395c
@ -685,7 +685,7 @@ impl Desfire {
|
|||||||
let response = self.card.as_ref().unwrap().transmit(cmd_read_data).unwrap();
|
let response = self.card.as_ref().unwrap().transmit(cmd_read_data).unwrap();
|
||||||
// println!("RESPONSE: {}", response);
|
// println!("RESPONSE: {}", response);
|
||||||
|
|
||||||
response.check().map_err(|e| e)?;
|
response.check()?;
|
||||||
// // println!("RESPONSE_DATA: {:x?}, WITHOUT_CMAC: {:x?}", response.body.as_ref().unwrap(), response.body.as_ref().unwrap()[..bytes_toread].to_vec());
|
// // println!("RESPONSE_DATA: {:x?}, WITHOUT_CMAC: {:x?}", response.body.as_ref().unwrap(), response.body.as_ref().unwrap()[..bytes_toread].to_vec());
|
||||||
|
|
||||||
read_buffer.append(&mut response.body.unwrap()[..bytes_toread].to_vec());
|
read_buffer.append(&mut response.body.unwrap()[..bytes_toread].to_vec());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user