Bluetooth: Mesh: fix not initialized uuid in model publication
uuid wasn't initialized in the publication setting command. It caused wrong the configuration clietn behavior. Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
This commit is contained in:
parent
ad3d8e8581
commit
c0749bef83
@ -2166,6 +2166,7 @@ static int mod_pub_set(const struct shell *sh, uint16_t addr, bool is_va,
|
||||
|
||||
if (!is_va) {
|
||||
pub.addr = shell_strtoul(argv[0], 0, &err);
|
||||
pub.uuid = NULL;
|
||||
} else {
|
||||
len = hex2bin(argv[0], strlen(argv[0]), uuid, sizeof(uuid));
|
||||
memset(uuid + len, 0, sizeof(uuid) - len);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user