diff --git a/components/bt/esp_ble_mesh/mesh_core/settings.c b/components/bt/esp_ble_mesh/mesh_core/settings.c index 491782f400..874ff7d772 100644 --- a/components/bt/esp_ble_mesh/mesh_core/settings.c +++ b/components/bt/esp_ble_mesh/mesh_core/settings.c @@ -538,6 +538,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;