Message ID | 20210923032603.50536-16-inga.stotland@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Mesh Configuration Database | expand |
Context | Check | Description |
---|---|---|
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
diff --git a/tools/mesh/mesh-db.c b/tools/mesh/mesh-db.c index 42ba831d4..0dc811801 100644 --- a/tools/mesh/mesh-db.c +++ b/tools/mesh/mesh-db.c @@ -1590,6 +1590,10 @@ bool mesh_db_add_group(struct mesh_group *grp) goto fail; } + /* Initialize parent group to unassigned address for now*/ + if (!write_uint16_hex(jgroup, "parentAddress", UNASSIGNED_ADDRESS)) + goto fail; + json_object_array_add(jgroups, jgroup); return save_config();