1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Add MFUL counters to Info page

by aaronjamt
This commit is contained in:
MX
2025-12-01 05:36:10 +03:00
parent 5bd0f642dd
commit 3821c9049e

View File

@@ -9,6 +9,11 @@ static void nfc_render_mf_ultralight_pages_count(const MfUltralightData* data, F
} }
} }
static void nfc_render_mf_ultralight_counters(const MfUltralightData* data, FuriString* str) {
for(uint8_t i = 0; i < MF_ULTRALIGHT_COUNTER_NUM; i++)
furi_string_cat_printf(str, "\nCounter %u: %lu", i, data->counter[i].counter);
}
void nfc_render_mf_ultralight_pwd_pack(const MfUltralightData* data, FuriString* str) { void nfc_render_mf_ultralight_pwd_pack(const MfUltralightData* data, FuriString* str) {
MfUltralightConfigPages* config; MfUltralightConfigPages* config;
@@ -35,6 +40,8 @@ void nfc_render_mf_ultralight_pwd_pack(const MfUltralightData* data, FuriString*
} }
nfc_render_mf_ultralight_pages_count(data, str); nfc_render_mf_ultralight_pages_count(data, str);
nfc_render_mf_ultralight_counters(data, str);
} }
void nfc_render_mf_ultralight_info( void nfc_render_mf_ultralight_info(