Skip to content

Commit 4d7e35b

Browse files
maass-hamburgkartben
authored andcommitted
mgmt: hawkbit: reset action ID after successful update report
reset action ID after successful update report. Signed-off-by: Fin Maaß <[email protected]>
1 parent a03b06f commit 4d7e35b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/mgmt/hawkbit/hawkbit.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,11 @@ static void s_report(void *o)
14971497
return;
14981498
}
14991499

1500+
/* After reporting the successful update to the hawkBit server, we can reset the saved
1501+
* action ID to 0, as we don't need it anymore.
1502+
*/
1503+
(void)hawkbit_device_acid_update(0);
1504+
15001505
smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_PROBE]);
15011506
}
15021507

0 commit comments

Comments
 (0)