From 85539e04175926e75d4ed4f185b72113ade38c33 Mon Sep 17 00:00:00 2001 From: Derek Jamison Date: Sat, 24 Aug 2024 19:15:55 -0600 Subject: [PATCH] Blink with team color --- laser_tag_app.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/laser_tag_app.c b/laser_tag_app.c index 12659ef1f27..6ee63e8fbc5 100644 --- a/laser_tag_app.c +++ b/laser_tag_app.c @@ -228,9 +228,16 @@ void laser_tag_app_fire(LaserTagApp* app) { notification_message(app->notifications, &sequence_short_beep); - notification_message(app->notifications, &sequence_blink_blue_100); + if(game_state_get_team(app->game_state) == TeamBlue) { + notification_message(app->notifications, &sequence_blink_blue_100); + + FURI_LOG_I(TAG, "Notifying user with blink blue and short beep"); + } else { + notification_message(app->notifications, &sequence_blink_red_100); + + FURI_LOG_I(TAG, "Notifying user with blink red and short beep"); + } - FURI_LOG_I(TAG, "Notifying user with blink blue and short beep"); app->need_redraw = true; }