mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
background sync
This commit is contained in:
@@ -163,9 +163,9 @@ void startAdvertising() {
|
||||
std::memset(&advParams, 0, sizeof(advParams));
|
||||
advParams.conn_mode = BLE_GAP_CONN_MODE_UND;
|
||||
advParams.disc_mode = BLE_GAP_DISC_MODE_GEN;
|
||||
const uint16_t advIntervalMin = BLE_GAP_ADV_ITVL_MS(3000);
|
||||
const uint16_t advIntervalMin = BLE_GAP_ADV_ITVL_MS(1000);
|
||||
advParams.itvl_min = advIntervalMin;
|
||||
advParams.itvl_max = BLE_GAP_ADV_ITVL_MS(4200);
|
||||
advParams.itvl_max = BLE_GAP_ADV_ITVL_MS(1200);
|
||||
|
||||
rc = ble_gap_adv_start(g_ownAddrType, nullptr, BLE_HS_FOREVER, &advParams, gapEventHandler, nullptr);
|
||||
if (rc != 0) {
|
||||
|
||||
Reference in New Issue
Block a user