mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 06:54:19 +00:00
fix NFC V dumps v3 crashing at info page
This commit is contained in:
parent
46eec3f568
commit
acd6445d3b
1 changed files with 6 additions and 1 deletions
|
@ -328,7 +328,12 @@ bool iso15693_3_is_block_locked(const Iso15693_3Data* data, uint8_t block_index)
|
||||||
furi_assert(data);
|
furi_assert(data);
|
||||||
furi_assert(block_index < data->system_info.block_count);
|
furi_assert(block_index < data->system_info.block_count);
|
||||||
|
|
||||||
return *(const uint8_t*)simple_array_cget(data->block_security, block_index);
|
// TODO: make proper fix for this, old format had no Block Security Status in file
|
||||||
|
if(simple_array_get_count(data->block_security) != 0) {
|
||||||
|
return *(const uint8_t*)simple_array_cget(data->block_security, block_index);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t iso15693_3_get_manufacturer_id(const Iso15693_3Data* data) {
|
uint8_t iso15693_3_get_manufacturer_id(const Iso15693_3Data* data) {
|
||||||
|
|
Loading…
Reference in a new issue