mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'pr/tdbstore-missing-offset' of git://github.com/kyle-cypress/mbed-os into dev_rollup
commit
206e52c574
|
|
@ -1418,7 +1418,7 @@ int TDBStore::do_reserved_data_get(void *reserved_data, size_t reserved_data_buf
|
||||||
|
|
||||||
while (actual_size) {
|
while (actual_size) {
|
||||||
uint32_t chunk = std::min(work_buf_size, (uint32_t) actual_size);
|
uint32_t chunk = std::min(work_buf_size, (uint32_t) actual_size);
|
||||||
ret = read_area(_active_area, offset, chunk, buf);
|
ret = read_area(_active_area, offset, chunk, buf + offset);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue