Skip to content

Commit

Permalink
upd blespam
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 15, 2023
1 parent b925047 commit 6512b39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
18 changes: 4 additions & 14 deletions base_pack/ble_spam/protocols/continuity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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, "");
}
4 changes: 1 addition & 3 deletions base_pack/ble_spam/protocols/easysetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 1 addition & 3 deletions base_pack/ble_spam/protocols/fastpair.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 1 addition & 3 deletions base_pack/ble_spam/protocols/lovespouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 6512b39

Please sign in to comment.