Skip to content

Commit 114f1d0

Browse files
committed
Some tweaks
1 parent ae6118a commit 114f1d0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

examples/UnitUnified/NFCB/JapanIDCard/main/JapanIDCard.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ void dump()
7474
// ********************************************
7575
// // Password (YOU MUST CHANGE IT!) as string
7676
// ********************************************
77-
constexpr char pass[] = "XXXX";
77+
constexpr char DEFAULT_PASS[] = "XXXX";
78+
constexpr char pass[] = "XXXX";
79+
if (memcmp(pass, DEFAULT_PASS, sizeof(DEFAULT_PASS)) == 0) {
80+
M5_LOGE(
81+
"PIN is placeholder \"XXXX\". Edit the source before running. (Repeated wrong verifies will LOCK the "
82+
"card!)");
83+
return;
84+
}
7885
if (!fs.verifyGlobal((uint8_t*)pass, 4)) {
7986
M5_LOGE("Failed to verify");
8087
return;

0 commit comments

Comments
 (0)