From 6512b39673c3723858b17149e22dfcc7ce2d12a4 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sat, 16 Dec 2023 02:21:21 +0300 Subject: [PATCH] upd blespam --- base_pack/ble_spam/protocols/continuity.c | 18 ++++-------------- base_pack/ble_spam/protocols/easysetup.c | 4 +--- base_pack/ble_spam/protocols/fastpair.c | 4 +--- base_pack/ble_spam/protocols/lovespouse.c | 4 +--- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/base_pack/ble_spam/protocols/continuity.c b/base_pack/ble_spam/protocols/continuity.c index 6cc2eea6ab4..50fcfae9ec7 100644 --- a/base_pack/ble_spam/protocols/continuity.c +++ b/base_pack/ble_spam/protocols/continuity.c @@ -918,9 +918,7 @@ bool scene_continuity_pp_model_custom_on_event(void* _ctx, SceneManagerEvent eve return false; } void scene_continuity_pp_model_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } static void pp_color_callback(void* _ctx, uint32_t index) { @@ -1043,9 +1041,7 @@ bool scene_continuity_pp_color_custom_on_event(void* _ctx, SceneManagerEvent eve return false; } void scene_continuity_pp_color_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } static void pp_prefix_callback(void* _ctx, uint32_t index) { @@ -1135,9 +1131,7 @@ bool scene_continuity_pp_prefix_custom_on_event(void* _ctx, SceneManagerEvent ev return false; } void scene_continuity_pp_prefix_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } static void na_action_callback(void* _ctx, uint32_t index) { @@ -1241,9 +1235,7 @@ bool scene_continuity_na_action_custom_on_event(void* _ctx, SceneManagerEvent ev return false; } void scene_continuity_na_action_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } static void na_flags_callback(void* _ctx) { @@ -1277,6 +1269,4 @@ void scene_continuity_na_flags_on_exit(void* _ctx) { Payload* payload = &ctx->attack->payload; ContinuityCfg* cfg = &payload->cfg.continuity; cfg->data.nearby_action.flags = (ctx->byte_store[0] << 0x00); - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); } diff --git a/base_pack/ble_spam/protocols/easysetup.c b/base_pack/ble_spam/protocols/easysetup.c index e2e814d0b68..f070aea2d0f 100644 --- a/base_pack/ble_spam/protocols/easysetup.c +++ b/base_pack/ble_spam/protocols/easysetup.c @@ -470,9 +470,7 @@ bool scene_easysetup_buds_model_custom_on_event(void* _ctx, SceneManagerEvent ev return false; } void scene_easysetup_buds_model_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } static void watch_model_callback(void* _ctx, uint32_t index) { diff --git a/base_pack/ble_spam/protocols/fastpair.c b/base_pack/ble_spam/protocols/fastpair.c index 37bd7e5c82e..b79f8454b36 100644 --- a/base_pack/ble_spam/protocols/fastpair.c +++ b/base_pack/ble_spam/protocols/fastpair.c @@ -817,7 +817,5 @@ bool scene_fastpair_model_custom_on_event(void* _ctx, SceneManagerEvent event) { return false; } void scene_fastpair_model_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); } diff --git a/base_pack/ble_spam/protocols/lovespouse.c b/base_pack/ble_spam/protocols/lovespouse.c index 22ad8679188..f7206534ed3 100644 --- a/base_pack/ble_spam/protocols/lovespouse.c +++ b/base_pack/ble_spam/protocols/lovespouse.c @@ -288,7 +288,5 @@ bool scene_lovespouse_mode_custom_on_event(void* _ctx, SceneManagerEvent event) return false; } void scene_lovespouse_mode_custom_on_exit(void* _ctx) { - Ctx* ctx = _ctx; - byte_input_set_result_callback(ctx->byte_input, NULL, NULL, NULL, NULL, 0); - byte_input_set_header_text(ctx->byte_input, ""); + UNUSED(_ctx); }