print_result(" RX : ", datain, datalen);
}
- if ( flags & CLEARTRACE ){
+ if ( flags & CLEARTRACE )
clear_trace();
- }
if ( flags & INIT ){
if ( !InitDesfireCard() )
}
int len = DesfireAPDU(datain, datalen, resp);
- if (MF_DBGLEVEL >= 4) {
+ if (MF_DBGLEVEL >= 4)
print_result("ERR <--: ", resp, len);
- }
if ( !len ) {
OnError(2);
// reset the pcb_blocknum,
pcb_blocknum = 0;
- if ( flags & DISCONNECT ){
+ if ( flags & DISCONNECT )
OnSuccess();
- }
cmd_send(CMD_ACK,1,len,0,resp,len);
}
len = ReaderReceive(resp, par);
- if( len == 0x00 ){
+ if ( !len ) {
if (MF_DBGLEVEL >= 4) Dbprintf("fukked");
return FALSE; //DATA LINK ERROR
}