Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
BLE Spam fix default 0 values and checks --nobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Oct 23, 2023
1 parent eee662f commit 4bbdbcf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/external/ble_spam/protocols/continuity.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void continuity_make_packet(uint8_t* _size, uint8_t** _packet, const Prot
const ContinuityCfg* cfg = _cfg ? &_cfg->continuity : NULL;

ContinuityType type;
if(cfg) {
if(cfg && cfg->type != 0x00) {
type = cfg->type;
} else {
const ContinuityType types[] = {
Expand Down
2 changes: 1 addition & 1 deletion applications/external/ble_spam/protocols/easysetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void easysetup_make_packet(uint8_t* out_size, uint8_t** out_packet, const Protoc
const EasysetupCfg* cfg = _cfg ? &_cfg->easysetup : NULL;

EasysetupType type;
if(cfg) {
if(cfg && cfg->type != 0x00) {
type = cfg->type;
} else {
type = rand() % EasysetupTypeCOUNT;
Expand Down
2 changes: 1 addition & 1 deletion applications/external/ble_spam/protocols/easysetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Research by @Spooks4576

typedef enum {
EasysetupTypeBuds,
EasysetupTypeBuds = 0x01, // Skip 0 as it means unset
EasysetupTypeWatch,
EasysetupTypeCOUNT,
} EasysetupType;
Expand Down

0 comments on commit 4bbdbcf

Please sign in to comment.