Skip to content

Commit

Permalink
Merge pull request #704 from ccollins476ad/ble-hs-no-store
Browse files Browse the repository at this point in the history
BLE Host - Don't crash if no store package.
  • Loading branch information
ccollins476ad committed Dec 20, 2017
2 parents 98032df + 3e6ff4d commit 12b1b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/nimble/host/src/ble_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ ble_hs_sync(void)

if (rc == 0) {
rc = ble_hs_misc_restore_irks();
assert(rc == 0);
if (rc != 0) {
BLE_HS_LOG(INFO, "Failed to restore IRKs from store; status=%d",
rc);
}

if (ble_hs_cfg.sync_cb != NULL) {
ble_hs_cfg.sync_cb();
Expand Down

0 comments on commit 12b1b90

Please sign in to comment.