Remove redundant extra API

This commit is contained in:
Willy-JL
2024-05-28 04:51:02 +01:00
parent c957951a46
commit 1f1c05d81a
5 changed files with 8 additions and 27 deletions

View File

@@ -482,7 +482,13 @@ static void nfc_protocol_support_scene_save_name_on_enter(NfcApp* instance) {
if(name_is_empty) {
furi_string_set(instance->file_path, NFC_APP_FOLDER);
FuriString* prefix = furi_string_alloc();
nfc_device_get_abbreviated_name(instance->nfc_device, prefix);
furi_string_set(prefix, nfc_device_get_name(instance->nfc_device, NfcDeviceNameTypeFull));
furi_string_replace(prefix, "Mifare", "MF");
furi_string_replace(prefix, " Classic", "C"); // MFC
furi_string_replace(prefix, "Desfire", "Des"); // MF Des
furi_string_replace(prefix, "Ultralight", "UL"); // MF UL
furi_string_replace(prefix, " Plus", "+"); // NTAG I2C+
furi_string_replace(prefix, " (Unknown)", "");
furi_string_replace_all(prefix, " ", "_");
name_generator_make_auto(
instance->text_store, NFC_TEXT_STORE_SIZE, furi_string_get_cstr(prefix));