mirror of
https://github.com/m5stack/M5Unit-NFC.git
synced 2026-05-20 11:48:34 -07:00
Fixes platform-specific compile error in examples
This commit is contained in:
@@ -142,7 +142,7 @@ void loop()
|
||||
if (nfc_a.identify(u)) {
|
||||
M5.Log.printf("PICC:%s %s %04X/%02X %u/%u\n", u.uidAsString().c_str(), u.typeAsString().c_str(), u.atqa,
|
||||
u.sak, u.userAreaSize(), u.totalSize());
|
||||
lcd.printf("[%2u]:PICC:<%s> %s\n", idx, u.uidAsString().c_str(), u.typeAsString().c_str());
|
||||
lcd.printf("[%2u]:PICC:<%s> %s\n", static_cast<unsigned>(idx), u.uidAsString().c_str(), u.typeAsString().c_str());
|
||||
++idx;
|
||||
} else {
|
||||
M5_LOGW("Failed to identify %s %s %04X/%02X %u/%u", u.uidAsString().c_str(), u.typeAsString().c_str(),
|
||||
|
||||
@@ -117,7 +117,7 @@ void loop()
|
||||
uint32_t idx{};
|
||||
for (auto&& u : piccs) {
|
||||
M5.Log.printf("PICC:%s %s\n", u.pupiAsString().c_str(), u.typeAsString().c_str());
|
||||
lcd.printf("[%2u]:PICC:<%s>%s\n", idx, u.pupiAsString().c_str(), u.typeAsString().c_str());
|
||||
lcd.printf("[%2u]:PICC:<%s>%s\n", static_cast<unsigned>(idx), u.pupiAsString().c_str(), u.typeAsString().c_str());
|
||||
++idx;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void loop()
|
||||
uint32_t idx{};
|
||||
for (auto&& u : piccs) {
|
||||
M5.Log.printf("PICC:%s %s %u\n", u.uidAsString().c_str(), u.typeAsString().c_str(), u.totalSize());
|
||||
lcd.printf("[%2u]:PICC:<%s> %s\n", idx, u.uidAsString().c_str(), u.typeAsString().c_str());
|
||||
lcd.printf("[%2u]:PICC:<%s> %s\n", static_cast<unsigned>(idx), u.uidAsString().c_str(), u.typeAsString().c_str());
|
||||
++idx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user