Skip to content

Commit 4621b6e

Browse files
plskeggsnordicjm
authored andcommitted
samples: cellular: nrf_cloud_rest_cell_location: Update cred chk
Handle new error code. Turn off network if not continuing. Jira: IRIS-9151 Signed-off-by: Pete Skeggs <[email protected]>
1 parent 9707a66 commit 4621b6e

File tree

1 file changed

+1
-1
lines changed
  • samples/cellular/nrf_cloud_rest_cell_location/src

1 file changed

+1
-1
lines changed

samples/cellular/nrf_cloud_rest_cell_location/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static void check_credentials(void)
581581
{
582582
int err = nrf_cloud_credentials_configured_check();
583583

584-
if (err == -ENOTSUP) {
584+
if ((err == -ENOTSUP) || (err == -ENOPROTOOPT)) {
585585
LOG_ERR("Required nRF Cloud credentials were not found");
586586
LOG_INF("Install credentials and then reboot the device");
587587
k_sleep(K_FOREVER);

0 commit comments

Comments
 (0)