Skip to content
Snippets Groups Projects
Commit 62d0ae20 authored by da1l6's avatar da1l6
Browse files

CardReader: Fix send_apdu command return type

parent 69b0527a
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ void handle_card_msg(uint8_t* msg, uint8_t length){
//we need to allocate this buffer size anyway,
//so why care adding a LE field in the card message?
uint8_t result = ISO7816_send_apdu(apdu_header,
uint16_t result = ISO7816_send_apdu(apdu_header,
apdu_payload,
apdu_payload_length,
answer_status,
......@@ -94,9 +94,6 @@ void handle_card_msg(uint8_t* msg, uint8_t length){
} else {
answer_payload_length = result & 0xFF;
// lcd_set_pos(0,1);
// for (uint8_t i = 0; i < 16; i++) lcd_write_byte_hex(answer_buffer[i]);
transport_send_message(answer_buffer, answer_payload_length+2); //send the card status(2byte) and answer_payload
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment