]> granicus.if.org Git - esp-idf/commitdiff
ble_mesh: fix not restoring ble mesh cfg value
authorlly <lly@espressif.com>
Tue, 8 Oct 2019 08:34:05 +0000 (16:34 +0800)
committerlly <lly@espressif.com>
Tue, 8 Oct 2019 08:34:05 +0000 (16:34 +0800)
components/bt/esp_ble_mesh/mesh_core/settings.c

index 491782f400e1131867c4d0d9d3452268d15da7ff..874ff7d7724ff610464343d7eacb9e16df7f32f1 100644 (file)
@@ -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;