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:
parent
17dd9f4928
commit
eaa29d9d71
3 changed files with 18 additions and 0 deletions
|
@ -32,6 +32,7 @@ enum hawkbit_response {
|
|||
HAWKBIT_UPDATE_INSTALLED,
|
||||
HAWKBIT_NO_UPDATE,
|
||||
HAWKBIT_CANCEL_UPDATE,
|
||||
HAWKBIT_PROBE_IN_PROGRESS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue