[core] Update ltchiptool to fix activating OTA

This commit is contained in:
Kuba Szczodrzyński
2023-04-22 18:10:33 +02:00
parent 1ba6834391
commit 42c18859f3
2 changed files with 9 additions and 3 deletions

View File

@@ -149,11 +149,17 @@ bool lt_flash_erase_block(uint32_t offset) {
}
uint32_t lt_flash_read(uint32_t offset, uint8_t *data, size_t length) {
return fal_partition_read(fal_root_part, offset, data, length);
int ret = fal_partition_read(fal_root_part, offset, data, length);
if (ret == -1)
return 0;
return ret;
}
uint32_t lt_flash_write(uint32_t offset, const uint8_t *data, size_t length) {
return fal_partition_write(fal_root_part, offset, data, length);
int ret = fal_partition_write(fal_root_part, offset, data, length);
if (ret == -1)
return 0;
return ret;
}
/*__ __