mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Revert "Revert "Merge branch 'pr/450' into 420""
This reverts commit 076b11e872.
This commit is contained in:
@@ -6,17 +6,26 @@
|
||||
#include <furi.h>
|
||||
#include "furi_hal_nfc.h"
|
||||
|
||||
uint8_t slix_get_ti(FuriHalNfcDevData* nfc_data) {
|
||||
return (nfc_data->uid[3] >> 3) & 3;
|
||||
}
|
||||
|
||||
|
||||
bool slix_check_card_type(FuriHalNfcDevData* nfc_data) {
|
||||
if((nfc_data->uid[0] == 0xE0) && (nfc_data->uid[1] == 0x04) && (nfc_data->uid[2] == 0x01) &&
|
||||
(((nfc_data->uid[3] >> 4) & 3) == 2)) {
|
||||
if((nfc_data->uid[0] == 0xE0)
|
||||
&& (nfc_data->uid[1] == 0x04)
|
||||
&& (nfc_data->uid[2] == 0x01)
|
||||
&& slix_get_ti(nfc_data) == 2) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool slix2_check_card_type(FuriHalNfcDevData* nfc_data) {
|
||||
if((nfc_data->uid[0] == 0xE0) && (nfc_data->uid[1] == 0x04) && (nfc_data->uid[2] == 0x01) &&
|
||||
(((nfc_data->uid[3] >> 4) & 3) == 1)) {
|
||||
if((nfc_data->uid[0] == 0xE0)
|
||||
&& (nfc_data->uid[1] == 0x04)
|
||||
&& (nfc_data->uid[2] == 0x01)
|
||||
&& slix_get_ti(nfc_data) == 1) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user