Skip to content

Commit

Permalink
Add version to log
Browse files Browse the repository at this point in the history
  • Loading branch information
bettse committed Jun 25, 2024
1 parent e7e5426 commit b109adf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sam_api.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

#include "sam_api.h"
#include <toolbox/path.h>
#include <toolbox/version.h>
#include <bit_lib/bit_lib.h>

#define TAG "SAMAPI"
Expand Down Expand Up @@ -1103,6 +1104,14 @@ NfcCommand seader_worker_card_detect(
}

seader_send_card_detected(seader, cardDetails);
// Print version information for app and firmware for later review in log
const Version* version = version_get();
FURI_LOG_I(
TAG,
"Firmware origin: %s firmware version: %s app version: %s",
version_get_firmware_origin(version),
version_get_version(version),
FAP_VERSION);

free(cardDetails);
return NfcCommandContinue;
Expand Down

0 comments on commit b109adf

Please sign in to comment.