mtd: fix a typo

This commit is contained in:
wanggang26 2023-06-02 22:43:41 +08:00 committed by Petro Karashchenko
parent 61a46ad39e
commit 01348b70a9

View File

@ -1863,8 +1863,8 @@ static int nvs_next(FAR struct nvs_fs *fs,
return rc;
}
memcpy(pdata->id, key, sizeof(pdata->id));
memcpy(pdata->instance, key + sizeof(pdata->id), sizeof(pdata->instance));
memcpy(&pdata->id, key, sizeof(pdata->id));
memcpy(&pdata->instance, key + sizeof(pdata->id), sizeof(pdata->instance));
#endif
rc = nvs_flash_rd(fs, (rd_addr & ADDR_BLOCK_MASK) + step_ate.offset +