Merge pull request #305 from ViRb3/better-warn

Better warn user of hardcoded hitag info
This commit is contained in:
Iceman 2019-08-03 20:01:18 +02:00 committed by GitHub
commit e4972e8810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -478,15 +478,9 @@ static bool getHitagUid(uint32_t *uid) {
}
static int CmdLFHitagInfo(const char *Cmd) {
PrintAndLogEx(INFO, "Hitag2 tag information ");
PrintAndLogEx(INFO, "To be done!");
PrintAndLogEx(INFO, "------------------------------------");
char ctmp = tolower(param_getchar(Cmd, 0));
if (ctmp == 'h') return usage_hitag_info();
// pwd or key
// read UID
uint32_t uid = 0;
if (getHitagUid(&uid) == false)
@ -495,8 +489,8 @@ static int CmdLFHitagInfo(const char *Cmd) {
PrintAndLogEx(SUCCESS, "UID: %08X", uid);
// how to detemine Hitag types?
// read block3, get configuration byte.
PrintAndLogEx(FAILED, _RED_("TODO: This is a hardcoded example!"));
// common configurations.
printHitagConfiguration(0x06);