armsrc/sam_common.c: type cleanup

This commit is contained in:
Jakub Kramarz 2025-01-05 21:21:30 +01:00
commit c28ddd1d56
4 changed files with 21 additions and 25 deletions

View file

@ -244,7 +244,7 @@ int sam_picopass_get_pacs(void) {
// 80 01
// 04
hexstr_to_byte_array("a005a103800104", sam_apdu, &sam_len);
if(sam_send_payload(0x44, 0x0a, 0x44, sam_apdu, &sam_len, resp, &resp_len) != PM3_SUCCESS) {
if(sam_send_payload(0x44, 0x0a, 0x44, sam_apdu, (uint16_t *) &sam_len, resp, &resp_len) != PM3_SUCCESS) {
res = PM3_ECARDEXCHANGE;
goto out;
}