We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00deb49 commit 66dec62Copy full SHA for 66dec62
app/src/modules/trigger/trigger.c
@@ -69,6 +69,7 @@ static void trigger_send(void)
69
struct battery_msg battery_msg = {
70
.type = BATTERY_PERCENTAGE_SAMPLE_REQUEST,
71
};
72
+ enum trigger_type fota_trigger = TRIGGER_FOTA_POLL;
73
74
err = zbus_chan_pub(&NETWORK_CHAN, &network_msg, K_SECONDS(1));
75
if (err) {
@@ -83,6 +84,14 @@ static void trigger_send(void)
83
84
SEND_FATAL_ERROR();
85
return;
86
}
87
+
88
+ /* Send FOTA poll trigger */
89
+ err = zbus_chan_pub(&TRIGGER_CHAN, &fota_trigger, K_SECONDS(1));
90
+ if (err) {
91
+ LOG_ERR("zbus_chan_pub FOTA trigger, error: %d", err);
92
+ SEND_FATAL_ERROR();
93
+ return;
94
+ }
95
96
97
/* Delayed work used to send triggers to the rest of the system */
0 commit comments