subsys/mgmt/hawkbit: Prevent multiple instances of hawkbit_probe

Use a semaphore to prevent the hawkbit_probe from running more than once
at the same time since it reset the hawkbit context on entry and will
affect other running instance.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2021-07-31 14:00:20 +08:00 committed by Christopher Friedt
commit eaa29d9d71
3 changed files with 18 additions and 0 deletions

View file

@ -32,6 +32,7 @@ enum hawkbit_response {
HAWKBIT_UPDATE_INSTALLED,
HAWKBIT_NO_UPDATE,
HAWKBIT_CANCEL_UPDATE,
HAWKBIT_PROBE_IN_PROGRESS,
};
/**