mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-15 20:01:54 -07:00
nfc: Fix MFUL auth success usage, remove unused variable
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user