From 62d0ae20675aaa0062735220e28118cddef27bb8 Mon Sep 17 00:00:00 2001
From: Philipp Claves <pclaves@web.de>
Date: Sat, 12 Nov 2011 23:14:48 +0100
Subject: [PATCH] CardReader: Fix send_apdu command return type

---
 CardReader/main.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/CardReader/main.c b/CardReader/main.c
index eb53ab6..348d05c 100644
--- a/CardReader/main.c
+++ b/CardReader/main.c
@@ -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
 	}
 }
-- 
GitLab