[FL-3637] NFC RC fixes (#3165)
* firmware: remove nfc lib build settings section * furi hal nfc: fix nfc irq gpio deinit * lib nfc: remove deprecated exception from sources * nfc: use ASK demodulator in transparent mode * mf ultralight: add upper page bound for NTAGI2C1K * furi hal nfc: set event if nfc event was started * nfc: fix PVS warnings * lib signal reader: remove gpio pull setting in alloc * furi: added math.h include for compatibility with existing apps * nfc: remove resolved TODO in mf desfire poller * bump api symbol version Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -297,7 +297,7 @@ bool mf_ultralight_load(MfUltralightData* data, FlipperFormat* ff, uint32_t vers
|
||||
uint32_t pages_total = 0;
|
||||
if(!flipper_format_read_uint32(ff, MF_ULTRALIGHT_PAGES_TOTAL_KEY, &pages_total, 1)) break;
|
||||
uint32_t pages_read = 0;
|
||||
if(data_format_version < mf_ultralight_data_format_version) {
|
||||
if(data_format_version < mf_ultralight_data_format_version) { //-V547
|
||||
pages_read = pages_total;
|
||||
} else {
|
||||
if(!flipper_format_read_uint32(ff, MF_ULTRALIGHT_PAGES_READ_KEY, &pages_read, 1))
|
||||
|
||||
@@ -518,6 +518,8 @@ static uint16_t mf_ultralight_get_upper_page_bound(MfUltralightType type) {
|
||||
upper_page_bound = 511;
|
||||
else if(type == MfUltralightTypeNTAGI2C2K)
|
||||
upper_page_bound = 479;
|
||||
else if(type == MfUltralightTypeNTAGI2C1K)
|
||||
upper_page_bound = 225;
|
||||
else {
|
||||
upper_page_bound = mf_ultralight_get_config_page_num(type) - 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user