more text changes to hf tesla info

This commit is contained in:
iceman1001 2023-03-05 08:21:09 +01:00
commit 47908df32e

View file

@ -202,19 +202,21 @@ static int info_hf_tesla(void) {
PrintAndLogEx(INFO, "%d - %s", i, sprint_hex_inrow(pk[i], 65)); PrintAndLogEx(INFO, "%d - %s", i, sprint_hex_inrow(pk[i], 65));
} }
PrintAndLogEx(INFO, "Form factor... %s " NOLF, sprint_hex_inrow(form_factor, sizeof(form_factor))); PrintAndLogEx(INFO, "Form factor... %s " NOLF, sprint_hex_inrow(form_factor, sizeof(form_factor)));
uint16_t form_factor_value = form_factor[0] << 8 | form_factor[1];
uint16_t form_factor_value = MemBeToUint2byte(form_factor);
switch (form_factor_value) { switch (form_factor_value) {
case 0x0001: case 0x0001:
PrintAndLogEx(NORMAL, "(card)"); PrintAndLogEx(NORMAL, "( card )");
break; break;
case 0x0022: case 0x0022:
PrintAndLogEx(NORMAL, "(fob)"); PrintAndLogEx(NORMAL, "( fob )");
break; break;
case 0x0031: case 0x0031:
PrintAndLogEx(NORMAL, "(phone app)"); PrintAndLogEx(NORMAL, "( phone app )");
break; break;
default: default:
PrintAndLogEx(NORMAL, "(unknown)"); PrintAndLogEx(NORMAL, "( unknown )");
break; break;
} }
@ -249,7 +251,6 @@ static int CmdHFTeslaInfo(const char *Cmd) {
return info_hf_tesla(); return info_hf_tesla();
} }
static int CmdHFTeslaList(const char *Cmd) { static int CmdHFTeslaList(const char *Cmd) {
return CmdTraceListAlias(Cmd, "hf tesla", "7816"); return CmdTraceListAlias(Cmd, "hf tesla", "7816");
} }