add #if for switching softdevice
This commit is contained in:
1 parent
b339718520
commit
dc30b91a99
2 files changed
+12
-1
No files matched your search
@@ -80,7 +80,11 @@ bool BLECentral::connect(const ble_gap_addr_t* peer_addr)
|
||||
.conn_sup_timeout = BLE_GAP_CONN_SUPERVISION_TIMEOUT_MS / 10 // in 10ms unit
|
||||
};
|
||||
|
||||
#if SD_VER < 500
|
||||
VERIFY_STATUS( sd_ble_gap_connect(peer_addr, Bluefruit.Scanner.getParams(), &gap_conn_params), false );
|
||||
#else
|
||||
VERIFY_STATUS( sd_ble_gap_connect(peer_addr, Bluefruit.Scanner.getParams(), &gap_conn_params, BLE_CONN_CFG_TAG_DEFAULT), false );
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user