Skip to content

Commit

Permalink
Latest Release RM0305-2339-0.99.1-992f2cf on PATREON - UPD BLE SPAM
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueMaster committed Mar 7, 2024
2 parents 809355a + 61c1fa8 commit 74d69fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/external/ble_spam/application.fam
Expand Up @@ -10,6 +10,6 @@ App(
fap_icon_assets_symbol="ble_spam",
fap_author="Willy-JL & ECTO-1A & Spooks4576",
fap_weburl="https://github.com/noproto/apple_ble_spam_ofw",
fap_version=(5, 1),
fap_version="6.0",
fap_description="Flood BLE advertisements to cause spammy and annoying popups/notifications",
)
5 changes: 4 additions & 1 deletion applications/external/ble_spam/ble_spam.c
Expand Up @@ -399,7 +399,7 @@ static void draw_callback(Canvas* canvas, void* _ctx) {
"App+Spam: \e#WillyJL\e#\n"
"Apple+Crash: \e#ECTO-1A\e#\n"
"Android+Win: \e#Spooks4576\e#\n"
" Version \e#5.1\e#",
" Version \e#" FAP_VERSION "\e#",
false);
break;
default: {
Expand Down Expand Up @@ -490,12 +490,14 @@ static bool input_callback(InputEvent* input, void* _ctx) {
consumed = true;
state->lock_warning = true;
if(state->lock_count == 0) {
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
furi_timer_start(state->lock_timer, 1000);
}
if(input->type == InputTypeShort && input->key == InputKeyBack) {
state->lock_count++;
}
if(state->lock_count >= 3) {
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
furi_timer_start(state->lock_timer, 1);
}
} else if(
Expand Down Expand Up @@ -613,6 +615,7 @@ static void lock_timer_callback(void* _ctx) {
with_view_model(
state->main_view, State * *model, { (*model)->lock_warning = false; }, true);
state->lock_count = 0;
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
}

static void tick_event_callback(void* _ctx) {
Expand Down

0 comments on commit 74d69fb

Please sign in to comment.