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

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