Skip to content

Commit 7f0bdbb

Browse files
sigvartmhhakonfam
authored andcommitted
samples: nrf9160: http_application_update: Add AT Notify initialization
AT Notify which was added in 16ae282 was not updated for the samples. `at_notif_init()` needs to be called before lte connect is called. Signed-off-by: Sigvart Hovland <[email protected]>
1 parent 0ec845d commit 7f0bdbb

File tree

1 file changed

+3
-1
lines changed
  • samples/nrf9160/http_application_update/src

1 file changed

+3
-1
lines changed

samples/nrf9160/http_application_update/src/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <bsd.h>
1010
#include <lte_lc.h>
1111
#include <at_cmd.h>
12-
#include <logging/log.h>
12+
#include <at_notif.h>
1313
#include <net/bsdlib.h>
1414
#include <net/fota_download.h>
1515
#include <dfu/mcuboot.h>
@@ -128,6 +128,8 @@ static void modem_configure(void)
128128
"This sample does not support auto init and connect");
129129
int err;
130130

131+
err = at_notif_init();
132+
__ASSERT(err == 0, "AT Notify could not be initialized.");
131133
err = at_cmd_init();
132134
__ASSERT(err == 0, "AT CMD could not be established.");
133135
printk("LTE Link Connecting ...\n");

0 commit comments

Comments
 (0)