diff --git a/lib/nfc/nfc_device.c b/lib/nfc/nfc_device.c index dd78e2daf..45d05a55b 100644 --- a/lib/nfc/nfc_device.c +++ b/lib/nfc/nfc_device.c @@ -925,7 +925,7 @@ static bool nfc_device_save_mifare_classic_keys(NfcDevice* dev) { flipper_format_write_hex(file, string_get_cstr(temp_str), sec_tr->key_a, 6); } if(!key_save_success) break; - if(FURI_BIT(data->key_a_mask, i)) { + if(FURI_BIT(data->key_b_mask, i)) { string_printf(temp_str, "Key B sector %d", i); key_save_success = flipper_format_write_hex(file, string_get_cstr(temp_str), sec_tr->key_b, 6);