Skip to content

Commit

Permalink
New notification sequence for Frequency Analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Oct 4, 2022
1 parent 32e64fd commit b5d6d60
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions applications/main/subghz/views/subghz_frequency_analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,25 @@ static const NotificationSequence sequence_saved = {
&message_vibro_off,
NULL,
};

static const NotificationSequence sequence_frequency = {
&message_display_backlight_on,
&message_green_255,
&message_vibro_on,
&message_delay_100,
&message_green_0,
&message_blue_255,
&message_vibro_off,
&message_delay_100,
&message_blue_0,
&message_green_255,
&message_vibro_on,
&message_delay_100,
&message_green_0,
&message_vibro_off,
NULL,
};

//static const NotificationSequence sequence_not_saved = {
// &message_blink_stop,
// &message_green_255,
Expand Down Expand Up @@ -366,8 +385,7 @@ void subghz_frequency_analyzer_pair_callback(void* context, uint32_t frequency,

switch(instance->feedback_level) {
case 1: // 1 - only vibro
notification_message(instance->notifications, &sequence_single_vibro);
notification_message(instance->notifications, &sequence_display_backlight_on);
notification_message(instance->notifications, &sequence_frequency);
break;
case 2: // 2 - vibro and beep
notification_message(instance->notifications, &sequence_success);
Expand Down

0 comments on commit b5d6d60

Please sign in to comment.