zephyr/subsys/mgmt
Dominik Ermel f52085dc54 mgmt/mcumgr/lib: Fix loop when image write fails
The img_mgmt_upload was getting into loop with requesting
offset 0 from mcumgr, when requested to re-try upload after
write fails.
Because it is not really possible to recover from write fail,
at least currently, the commit changes code to reset upload
state in a case of write error and return an error code.
Now, when write fails, an error will be returned and upload
process will be stopped and reset; upload re-try will behave
as a new upload has been requested.

Fixes #44219

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2022-06-10 09:48:31 +02:00
..
ec_host_cmd subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
hawkbit subsys/mgmt/hawkbit: format for readability 2022-06-07 11:52:10 +02:00
mcumgr mgmt/mcumgr/lib: Fix loop when image write fails 2022-06-10 09:48:31 +02:00
osdp subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
updatehub subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt
Kconfig