Skip to content

Commit

Permalink
log incoming apdu
Browse files Browse the repository at this point in the history
  • Loading branch information
bettse committed Mar 29, 2024
1 parent 996e90b commit 57aba91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sam_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,12 @@ bool seader_process_success_response_i(
if(rval.code == RC_OK) {
#ifdef ASN1_DEBUG
if(online == false) {
memset(display, 0, sizeof(display));
for(uint8_t i = 0; i < len - 6; i++) {
snprintf(display + (i * 2), sizeof(display), "%02x", apdu[i + 6]);
}
FURI_LOG_D(TAG, "incoming APDU %s", display);

char payloadDebug[384] = {0};
memset(payloadDebug, 0, sizeof(payloadDebug));
(&asn_DEF_Payload)
Expand Down

0 comments on commit 57aba91

Please sign in to comment.