more migration
This commit is contained in:
1 parent
0334a7f02b
commit
4bdc36279b
3 files changed
+11
-1
No files matched your search
@@ -156,6 +156,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
|
||||
#else
|
||||
_adamsg.feed(rd_rsp->handle_value, rd_rsp->value_len);
|
||||
#endif
|
||||
|
||||
_adamsg.complete();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +54,13 @@ BLEScanner::BLEScanner(void)
|
||||
|
||||
_param = (ble_gap_scan_params_t) {
|
||||
.active = 0,
|
||||
#if SD_VER < 500
|
||||
.selective = 0,
|
||||
.p_whitelist = NULL,
|
||||
#else
|
||||
.use_whitelist = 0,
|
||||
.adv_dir_report = 0,
|
||||
#endif
|
||||
.interval = BLE_SCAN_INTERVAL_DFLT,
|
||||
.window = BLE_SCAN_WINDOW_DFLT,
|
||||
.timeout = 0, // no timeout
|
||||
|
||||
@@ -143,13 +143,17 @@ err_t AdafruitBluefruit::begin(bool prph_enable, bool central_enable)
|
||||
.source = NRF_CLOCK_LF_SRC_XTAL,
|
||||
.rc_ctiv = 0,
|
||||
.rc_temp_ctiv = 0,
|
||||
#if SD_VER < 500
|
||||
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM
|
||||
#else
|
||||
.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM
|
||||
#endif
|
||||
#else
|
||||
// LFRC
|
||||
.source = NRF_CLOCK_LF_SRC_RC,
|
||||
.rc_ctiv = 16,
|
||||
.rc_temp_ctiv = 2,
|
||||
.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM
|
||||
.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user