[core] Update ltchiptool to fix activating OTA
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*__ __
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
},
|
||||
"tool-ltchiptool": {
|
||||
"type": "uploader",
|
||||
"version": "https://github.com/libretuya/ltchiptool#v4.0.0a0",
|
||||
"version": "https://github.com/libretuya/ltchiptool#v4.0.0a4",
|
||||
"version_prefix": true,
|
||||
"note": "This is used only for C/C++ code from ltchiptool."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user