Skip to content
Snippets Groups Projects
Commit 2c89a773 authored by da1l6's avatar da1l6
Browse files

Control: Increase key clear/init command timeout to 1 sec.

parent 0ff225d9
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ uint8_t cardreader_init_card_key(KEY key){
transport_send_message((uint8_t*)&msg, 1+sizeof(ISO7816_APDU_Header)+ sizeof(KEY));
uint8_t card_status[4];
uint16_t length = transport_receive_message(&card_status, 4, 3000);
uint16_t length = transport_receive_message(&card_status, 4, 10000);
if (TRANSPORT_IS_ERROR(length)){
printf_P(PSTR("Transport Error %04x\n"), length);
return 0;
......@@ -370,7 +370,7 @@ uint8_t cardreader_clear_card_key(void){
transport_send_message((uint8_t*)&msg, 1+sizeof(ISO7816_APDU_Header));
uint8_t card_status[4];
uint16_t length = transport_receive_message(&card_status, 4, 3000);
uint16_t length = transport_receive_message(&card_status, 4, 10000);
if (TRANSPORT_IS_ERROR(length)){
printf_P(PSTR("Transport Error %04x\n"), length);
return 0;
......
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