Skip to content

Commit

Permalink
[CONFIG] Fix NVS var mapping output destination
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Apr 9, 2024
1 parent 60461ff commit 2c4ba90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/adapter/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 2c4ba90

Please sign in to comment.