Describe the bug
In OTA_SetImageState(), the device is first activated and then the job status is update. If the job update fails, the image is still active, the device will reboot with the new image, but the job will return FAILED.
To Reproduce
Add delay in self test
Disconnect from internet whilst in the self test
Expected behavior
The device reverts to the previous version or retries to update the job state.
Describe the bug In
OTA_SetImageState()
, the device is first activated and then the job status is update. If the job update fails, the image is still active, the device will reboot with the new image, but the job will return FAILED.To Reproduce
Expected behavior The device reverts to the previous version or retries to update the job state.