fix: bad bool

This commit is contained in:
iceman1001 2019-10-19 16:39:28 -04:00
commit 4ab4746104

View file

@ -2330,7 +2330,7 @@ static int CmdHFiClassCheckKeys(const char *Cmd) {
uint8_t found_offset = 0; uint8_t found_offset = 0;
uint32_t key_offset = 0; uint32_t key_offset = 0;
// main keychunk loop // main keychunk loop
for (uint32_t key_offset = 0; key_offset < keycount; key_offset += chunksize) { for (key_offset = 0; key_offset < keycount; key_offset += chunksize) {
uint64_t t2 = msclock(); uint64_t t2 = msclock();
uint8_t timeout = 0; uint8_t timeout = 0;
@ -2849,11 +2849,13 @@ int readIclass(bool loop, bool verbose) {
PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data + 8 * 5, 8)); PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data + 8 * 5, 8));
if (legacy && isHidRange) if (isHidRange) {
PrintAndLogEx(SUCCESS, " : Possible iClass - legacy credential tag"); if (legacy)
PrintAndLogEx(SUCCESS, " : Possible iClass - legacy credential tag");
if (se_enabled & isHidRange) if (se_enabled)
PrintAndLogEx(SUCCESS, " : Possible iClass - SE credential tag"); PrintAndLogEx(SUCCESS, " : Possible iClass - SE credential tag");
}
if (isHidRange) { if (isHidRange) {
PrintAndLogEx(SUCCESS, " : Tag is "_YELLOW_("iClass")", CSN is in HID range"); PrintAndLogEx(SUCCESS, " : Tag is "_YELLOW_("iClass")", CSN is in HID range");