소스 검색

Merge pull request #4 from jamisonderek/jamisonderek/team-color

RocketGod 1 년 전
부모
커밋
026c92b399
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      laser_tag_app.c

+ 9 - 2
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;
 }