From 533157142a8afd34a7db340d64bc3bde5bca22f6 Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Wed, 31 Jan 2024 21:16:11 -0800 Subject: [PATCH] Increase ASN1 debug buffer --- sam_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sam_api.c b/sam_api.c index b1a4a23..67cd5bf 100644 --- a/sam_api.c +++ b/sam_api.c @@ -194,7 +194,7 @@ void seader_send_payload( #ifdef ASN1_DEBUG if(er.encoded > -1) { - char payloadDebug[384] = {0}; + char payloadDebug[1024] = {0}; memset(payloadDebug, 0, sizeof(payloadDebug)); (&asn_DEF_Payload) ->op->print_struct( @@ -202,6 +202,8 @@ void seader_send_payload( if(strlen(payloadDebug) > 0) { FURI_LOG_D(TAG, "Sending payload[%d %d %d]: %s", to, from, replyTo, payloadDebug); } + } else { + FURI_LOG_W(TAG, "Failed to print_struct payload"); } #endif //0xa0, 0xda, 0x02, 0x63, 0x00, 0x00, 0x0a,