Skip to content

Commit 026c92b

Browse files
Merge pull request #4 from jamisonderek/jamisonderek/team-color
2 parents fb3160c + 85539e0 commit 026c92b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

laser_tag_app.c

+9-2
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,16 @@ void laser_tag_app_fire(LaserTagApp* app) {
228228

229229
notification_message(app->notifications, &sequence_short_beep);
230230

231-
notification_message(app->notifications, &sequence_blink_blue_100);
231+
if(game_state_get_team(app->game_state) == TeamBlue) {
232+
notification_message(app->notifications, &sequence_blink_blue_100);
233+
234+
FURI_LOG_I(TAG, "Notifying user with blink blue and short beep");
235+
} else {
236+
notification_message(app->notifications, &sequence_blink_red_100);
237+
238+
FURI_LOG_I(TAG, "Notifying user with blink red and short beep");
239+
}
232240

233-
FURI_LOG_I(TAG, "Notifying user with blink blue and short beep");
234241
app->need_redraw = true;
235242
}
236243

0 commit comments

Comments
 (0)