NFC parsers false read() positive return fixed

This commit is contained in:
Methodius 2024-01-08 05:39:36 +09:00
parent e7bf9b4df2
commit 4636444464
No known key found for this signature in database
GPG Key ID: 122FA99A00B41679
6 changed files with 5 additions and 10 deletions

View File

@ -16,9 +16,6 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "core/core_defines.h"
#include "core/log.h"
#include "core/string.h"
#include "nfc_supported_card_plugin.h" #include "nfc_supported_card_plugin.h"
#include "protocols/mf_classic/mf_classic.h" #include "protocols/mf_classic/mf_classic.h"
@ -189,7 +186,7 @@ static bool kazan_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data); nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true; is_read = mf_classic_is_card_read(data);
} while(false); } while(false);
mf_classic_free(data); mf_classic_free(data);

View File

@ -114,7 +114,7 @@ static bool metromoney_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data); nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true; is_read = mf_classic_is_card_read(data);
} while(false); } while(false);
mf_classic_free(data); mf_classic_free(data);

View File

@ -1541,7 +1541,7 @@ static bool social_moscow_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data); nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true; is_read = mf_classic_is_card_read(data);
} while(false); } while(false);
mf_classic_free(data); mf_classic_free(data);

View File

@ -1566,7 +1566,7 @@ static bool troika_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data); nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true; is_read = mf_classic_is_card_read(data);
} while(false); } while(false);
mf_classic_free(data); mf_classic_free(data);

View File

@ -115,7 +115,7 @@ static bool washcity_read(Nfc* nfc, NfcDevice* device) {
nfc_device_set_data(device, NfcProtocolMfClassic, data); nfc_device_set_data(device, NfcProtocolMfClassic, data);
is_read = true; is_read = mf_classic_is_card_read(data);
} while(false); } while(false);
mf_classic_free(data); mf_classic_free(data);

View File

@ -18,8 +18,6 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "core/core_defines.h"
#include "core/string.h"
#include "furi_hal_rtc.h" #include "furi_hal_rtc.h"
#include "nfc_supported_card_plugin.h" #include "nfc_supported_card_plugin.h"