Skip to content

Commit dab4924

Browse files
authored
Merge pull request #2921 from Antiklesys/master
Added sc flag detection in sam response
2 parents a440fba + 0662c1a commit dab4924

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

armsrc/sam_picopass.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ static int sam_send_request_iso15(const uint8_t *const request, const uint8_t re
244244
*response_len = sam_rx_buf[5 + 1] + 2;
245245
}
246246

247+
if (sam_rx_buf[5] == 0xBD && sam_rx_buf[4] != 0x00){ //secure channel flag is not 0x00
248+
Dbprintf(_YELLOW_("Secure channel flag set to: ")"%02x", sam_rx_buf[4]);
249+
}
250+
247251
memcpy(response, sam_rx_buf + 5, *response_len);
248252

249253
goto out;

0 commit comments

Comments
 (0)