Skip to content

Commit

Permalink
Use provided function
Browse files Browse the repository at this point in the history
  • Loading branch information
Demae committed Jan 12, 2025
1 parent a772df3 commit 5b6ff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nfc/protocols/mf_desfire/mf_desfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ bool mf_desfire_is_equal(const MfDesfireData* data, const MfDesfireData* other)
const char* mf_desfire_get_device_name(const MfDesfireData* data, NfcDeviceNameType name_type) {
furi_check(data);

for(size_t i = 0; i < sizeof(mf_desfire_names) / sizeof(mf_desfire_names[0]); i++) {
for(size_t i = 0; i < COUNT_OF(mf_desfire_names); i++) {
if((mf_desfire_names[i].minor == data->version.hw_minor ||
mf_desfire_names[i].minor == 0xFF) &&
(mf_desfire_names[i].major == data->version.hw_major ||
Expand Down

0 comments on commit 5b6ff05

Please sign in to comment.