diff --git a/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp b/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp index e832c7e62..c2a9ff0a8 100644 --- a/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp +++ b/applications/ibutton/scene/ibutton_scene_readed_key_menu.cpp @@ -16,7 +16,9 @@ void iButtonSceneReadedKeyMenu::on_enter(iButtonApp* app) { Submenu* submenu = view_manager->get_submenu(); auto callback = cbc::obtain_connector(this, &iButtonSceneReadedKeyMenu::submenu_callback); - submenu_add_item(submenu, "Write", SubmenuIndexWrite, callback, app); + if(app->get_key()->get_key_type() == iButtonKeyType::KeyDallas) { + submenu_add_item(submenu, "Write", SubmenuIndexWrite, callback, app); + } submenu_add_item(submenu, "Name and save", SubmenuIndexNameAndSave, callback, app); submenu_add_item(submenu, "Emulate", SubmenuIndexEmulate, callback, app); submenu_add_item(submenu, "Read new key", SubmenuIndexReadNewKey, callback, app); diff --git a/applications/ibutton/scene/ibutton_scene_saved_key_menu.cpp b/applications/ibutton/scene/ibutton_scene_saved_key_menu.cpp index 8b7979685..ee92284f9 100644 --- a/applications/ibutton/scene/ibutton_scene_saved_key_menu.cpp +++ b/applications/ibutton/scene/ibutton_scene_saved_key_menu.cpp @@ -18,7 +18,9 @@ void iButtonSceneSavedKeyMenu::on_enter(iButtonApp* app) { auto callback = cbc::obtain_connector(this, &iButtonSceneSavedKeyMenu::submenu_callback); submenu_add_item(submenu, "Emulate", SubmenuIndexEmulate, callback, app); - submenu_add_item(submenu, "Write", SubmenuIndexWrite, callback, app); + if(app->get_key()->get_key_type() == iButtonKeyType::KeyDallas) { + submenu_add_item(submenu, "Write", SubmenuIndexWrite, callback, app); + } submenu_add_item(submenu, "Edit", SubmenuIndexEdit, callback, app); submenu_add_item(submenu, "Delete", SubmenuIndexDelete, callback, app); submenu_add_item(submenu, "Info", SubmenuIndexInfo, callback, app);