Skip to content

Commit 227c6b8

Browse files
committed
Improve debug logging
1 parent 16fa7cd commit 227c6b8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sam_api.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,17 +987,19 @@ bool seader_worker_state_machine(
987987

988988
switch(payload->present) {
989989
case Payload_PR_response:
990+
FURI_LOG_D(TAG, "Payload_PR_response");
990991
seader_parse_response(seader, &payload->choice.response);
991992
processed = true;
992993
break;
993994
case Payload_PR_nfcCommand:
995+
FURI_LOG_D(TAG, "Payload_PR_nfcCommand");
994996
if(online) {
995997
seader_parse_nfc_command(seader, &payload->choice.nfcCommand, spc);
996998
processed = true;
997999
}
9981000
break;
9991001
case Payload_PR_errorResponse:
1000-
FURI_LOG_W(TAG, "Error Response");
1002+
FURI_LOG_W(TAG, "Payload_PR_errorResponse");
10011003
processed = true;
10021004
view_dispatcher_send_custom_event(seader->view_dispatcher, SeaderCustomEventWorkerExit);
10031005
break;
@@ -1037,8 +1039,12 @@ bool seader_process_success_response_i(
10371039
->op->print_struct(
10381040
&asn_DEF_Payload, payload, 1, seader_print_struct_callback, payloadDebug);
10391041
if(strlen(payloadDebug) > 0) {
1040-
FURI_LOG_D(TAG, "Payload: %s", payloadDebug);
1042+
FURI_LOG_D(TAG, "Received Payload: %s", payloadDebug);
1043+
} else {
1044+
FURI_LOG_D(TAG, "Received empty Payload");
10411045
}
1046+
} else {
1047+
FURI_LOG_D(TAG, "Online mode");
10421048
}
10431049
#endif
10441050

0 commit comments

Comments
 (0)