mgmt: hawkbit: log start of autohandler from shell
If the run of the autohandler is started from shell, it will be logged. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
4655ef317e
commit
f5a3d7dd8f
1 changed files with 4 additions and 1 deletions
|
|
@ -13,13 +13,16 @@
|
|||
#include "hawkbit_firmware.h"
|
||||
#include "hawkbit_device.h"
|
||||
|
||||
LOG_MODULE_DECLARE(hawkbit, CONFIG_HAWKBIT_LOG_LEVEL);
|
||||
|
||||
static void cmd_run(const struct shell *sh, size_t argc, char **argv)
|
||||
{
|
||||
ARG_UNUSED(argc);
|
||||
ARG_UNUSED(argv);
|
||||
|
||||
|
||||
LOG_INF("Run started from %s", sh->name);
|
||||
shell_info(sh, "Starting hawkBit run...");
|
||||
|
||||
hawkbit_autohandler(false);
|
||||
|
||||
switch (hawkbit_autohandler_wait(UINT32_MAX, K_FOREVER)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue