Skip to content

Commit

Permalink
[FL-2735] IR green LED fix (flipperdevices#1591)
Browse files Browse the repository at this point in the history
* Fix incorrect LED behaviour
* Turn green LED off before blinking
  • Loading branch information
gsurkov authored Aug 12, 2022
1 parent 1655366 commit 9e452d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/infrared/scenes/infrared_scene_learn_success.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ bool infrared_scene_learn_success_on_event(void* context, SceneManagerEvent even
}
consumed = true;
} else if(event.event == DialogExPressCenter) {
infrared_play_notification_message(infrared, InfraredNotificationMessageGreenOff);
infrared_tx_start_received(infrared);
consumed = true;
} else if(event.event == DialogExReleaseCenter) {
infrared_tx_stop(infrared);
infrared_play_notification_message(infrared, InfraredNotificationMessageGreenOff);
consumed = true;
}
}
Expand All @@ -101,4 +101,5 @@ bool infrared_scene_learn_success_on_event(void* context, SceneManagerEvent even
void infrared_scene_learn_success_on_exit(void* context) {
Infrared* infrared = context;
dialog_ex_reset(infrared->dialog_ex);
infrared_play_notification_message(infrared, InfraredNotificationMessageGreenOff);
}

0 comments on commit 9e452d2

Please sign in to comment.