Skip to content
Commit 9d734ab1 authored by Reuben Cartwright's avatar Reuben Cartwright Committed by Devaraj Ranganna
Browse files

aws-iot: Refactor ota_agent_task redundant code



The function `otaAppCallback` is called upon an event such as a new
file block being received, or the OTA image being activated.
The function then redundantly checks the OTA state via `OTA_GetState`,
which reduces code clarity via duplication including redundant
calls to the ota update's active and inactive hooks.
This fix has been tested via passing Arm's internal CI.

Signed-off-by: default avatarReuben Cartwright <Reuben.Cartwright@arm.com>
parent f1738548
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment