From 6d61acdddeeb3395a37a5058faffefd76ab8e7d1 Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Wed, 27 Sep 2023 01:14:15 -0700 Subject: [PATCH] Picopass: Add haptics to loclass (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: あく --- picopass/scenes/picopass_scene_loclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/picopass/scenes/picopass_scene_loclass.c b/picopass/scenes/picopass_scene_loclass.c index 17d0f3faa43..d4e26543b67 100644 --- a/picopass/scenes/picopass_scene_loclass.c +++ b/picopass/scenes/picopass_scene_loclass.c @@ -45,15 +45,18 @@ bool picopass_scene_loclass_on_event(void* context, SceneManagerEvent event) { uint32_t loclass_macs_collected = scene_manager_get_scene_state(picopass->scene_manager, PicopassSceneLoclass); loclass_macs_collected++; + notification_message(picopass->notifications, &sequence_single_vibro); scene_manager_set_scene_state( picopass->scene_manager, PicopassSceneLoclass, loclass_macs_collected); loclass_set_num_macs(picopass->loclass, loclass_macs_collected); if(loclass_macs_collected >= LOCLASS_MACS_TO_COLLECT) { + notification_message(picopass->notifications, &sequence_double_vibro); scene_manager_previous_scene(picopass->scene_manager); } consumed = true; } else if(event.event == PicopassWorkerEventLoclassGotStandardKey) { loclass_set_header(picopass->loclass, "Loclass (Got Std Key)"); + notification_message(picopass->notifications, &sequence_error); consumed = true; } else if(event.event == PicopassWorkerEventLoclassFileError) { scene_manager_set_scene_state(picopass->scene_manager, PicopassSceneLoclass, 255);