ble_mesh: fix not restoring ble mesg cfg value

This commit is contained in:
lly
2019-10-08 17:02:25 +08:00
parent bd64e6f286
commit ec0abdf5fc

View File

@@ -540,6 +540,7 @@ static int cfg_set(const char *name)
return 0;
}
memcpy(&stored_cfg.cfg, &val, sizeof(val));
stored_cfg.valid = true;
BT_DBG("Restore configuration state");
return 0;