BLE Spam fix default 0 values and checks --nobuild

This commit is contained in:
Willy-JL
2023-10-23 23:24:41 +01:00
parent eee662f188
commit 4bbdbcf2c7
3 changed files with 3 additions and 3 deletions

View File

@@ -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[] = {

View File

@@ -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;

View File

@@ -5,7 +5,7 @@
// Research by @Spooks4576
typedef enum {
EasysetupTypeBuds,
EasysetupTypeBuds = 0x01, // Skip 0 as it means unset
EasysetupTypeWatch,
EasysetupTypeCOUNT,
} EasysetupType;