mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-29 04:09:58 -07:00
BLE Spam fix default 0 values and checks --nobuild
This commit is contained in:
@@ -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[] = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// Research by @Spooks4576
|
||||
|
||||
typedef enum {
|
||||
EasysetupTypeBuds,
|
||||
EasysetupTypeBuds = 0x01, // Skip 0 as it means unset
|
||||
EasysetupTypeWatch,
|
||||
EasysetupTypeCOUNT,
|
||||
} EasysetupType;
|
||||
|
||||
Reference in New Issue
Block a user