Skip to content
Snippets Groups Projects
Commit 1f34124b authored by schneider's avatar schneider
Browse files

change(ble): Do not allow bonding by default

parent 0ec8c09a
No related branches found
No related tags found
No related merge requests found
......@@ -352,15 +352,14 @@ static void bleSetup(bleMsg_t *pMsg)
AppAdvSetData(APP_ADV_DATA_CONNECTABLE, 0, NULL);
AppAdvSetData(APP_SCAN_DATA_CONNECTABLE, 0, NULL);
#if 0
/* TODO: card10: until we have an BLE dialog, be discoverable and bondable always */
/* start advertising; automatically set connectable/discoverable mode and bondable mode */
AppAdvStart(APP_MODE_AUTO_INIT);
#else
/* enter discoverable and bondable mode mode by default */
AppSetBondable(TRUE);
AppAdvStart(APP_MODE_DISCOVERABLE);
#endif
/* We only want to be bondable when the appropriate dialog is open */
AppSetBondable(FALSE);
/* TODO: Sadly, not advertising leads to a higher current consumption... */
if(AppDbCheckBonded() == FALSE) {
AppAdvStop();
} else {
AppAdvStart(APP_MODE_CONNECTABLE);
}
}
uint32_t epic_ble_get_compare_value(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment