We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a56928 commit 5fbc4f4Copy full SHA for 5fbc4f4
laser_tag_app.c
@@ -263,6 +263,10 @@ static bool laser_tag_app_enter_game_state(LaserTagApp* app) {
263
laser_tag_view_update(app->view, app->game_state);
264
FURI_LOG_D(TAG, "View updated with new game state");
265
266
+ if(app->ir_controller) {
267
+ infrared_controller_free(app->ir_controller);
268
+ app->ir_controller = NULL;
269
+ }
270
app->ir_controller = infrared_controller_alloc();
271
if(!app->ir_controller) {
272
FURI_LOG_E(TAG, "Failed to allocate IR controller");
0 commit comments