We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0826996 commit a7ee496Copy full SHA for a7ee496
include/zephyr/mgmt/hawkbit/event.h
@@ -57,6 +57,11 @@ enum hawkbit_event_type {
57
HAWKBIT_EVENT_END_RUN,
58
/** Event triggered before hawkBit does a reboot */
59
HAWKBIT_EVENT_BEFORE_REBOOT,
60
+ /**
61
+ * Event triggered during initialisation when the current image is confirmed and the old
62
+ * image is erased
63
+ */
64
+ HAWKBIT_EVENT_CONFIRMED_CURRENT_IMAGE,
65
};
66
67
struct hawkbit_event_callback;
subsys/mgmt/hawkbit/hawkbit.c
@@ -864,6 +864,8 @@ int hawkbit_init(void)
864
LOG_ERR("Failed to erase second slot: %d", ret);
865
return ret;
866
}
867
+
868
+ hawkbit_event_raise(HAWKBIT_EVENT_CONFIRMED_CURRENT_IMAGE);
869
870
hawkbit_initialized = true;
871
0 commit comments