diff --git a/main/adapter/config.c b/main/adapter/config.c index ed67c7e3..4145f54d 100644 --- a/main/adapter/config.c +++ b/main/adapter/config.c @@ -307,6 +307,7 @@ static void config_init_nvs_patch(struct config *data) { if (err == ESP_OK) { for (uint32_t i = 0; i < WIRED_MAX_DEV; i++) { memcpy(&data->in_cfg[i].map_cfg[index], &mapping, sizeof(struct map_cfg)); + data->in_cfg[i].map_cfg[index].dst_id = i; } } }