nfc: Fix MFUL auth success usage, remove unused variable

This commit is contained in:
Yukai Li
2022-10-07 01:11:03 -06:00
parent 2e93c6268e
commit b839566f3e
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ bool nfc_device_load_mifare_ul_data(FlipperFormat* file, NfcDevice* dev) {
auth_counter = 0;
data->curr_authlim = auth_counter;
data->has_auth = mf_ul_is_full_capture(data);
data->auth_success = mf_ul_is_full_capture(data);
parsed = true;
} while(false);
+1 -1
View File
@@ -51,7 +51,7 @@ void mf_ul_reset(MfUltralightData* data) {
data->data_size = 0;
data->data_read = 0;
data->curr_authlim = 0;
data->has_auth = false;
data->auth_success = false;
}
static MfUltralightFeatures mf_ul_get_features(MfUltralightType type) {
-1
View File
@@ -110,7 +110,6 @@ typedef struct {
uint8_t signature[32];
uint32_t counter[3];
uint8_t tearing[3];
bool has_auth;
MfUltralightAuthMethod auth_method;
uint8_t auth_key[4];
bool auth_success;