Skip to content

Commit f11430a

Browse files
nordicjmeivindj-nordic
authored andcommitted
applications: installer: Add log processing before reboot
Allows log messages to be printed before application reboots Signed-off-by: Jamie McCrae <[email protected]>
1 parent 4f3c065 commit f11430a

File tree

1 file changed

+4
-0
lines changed
  • applications/installer/src

1 file changed

+4
-0
lines changed

applications/installer/src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <zephyr/drivers/flash.h>
99
#include <zephyr/storage/flash_map.h>
1010
#include <zephyr/logging/log.h>
11+
#include <zephyr/logging/log_ctrl.h>
1112
#include <zephyr/sys/crc.h>
1213
#include <zephyr/sys/reboot.h>
1314
#include <bm_installs.h>
@@ -229,6 +230,9 @@ int main(void)
229230
LOG_ERR("Clear installer header OK");
230231
}
231232

233+
while (LOG_PROCESS()) {
234+
}
235+
232236
sys_reboot(SYS_REBOOT_WARM);
233237

234238
return 0;

0 commit comments

Comments
 (0)