aboutsummaryrefslogtreecommitdiff
path: root/ports/nrf/modules
diff options
context:
space:
mode:
authorGlenn Ruben Bakke2018-04-22 21:56:20 +0200
committerDamien George2018-07-18 17:12:26 +1000
commit7144e87cedd98f3ddcc5aedc7f79fd0e90d0bf23 (patch)
tree3a2cf9b87270ecc597787287c72e03a1b4156fd2 /ports/nrf/modules
parentdb67a5000f7e76dd73351b566544820b2b04b097 (diff)
nrf/bluetooth: Add support for s132/s140 v6, remove s132 v2/3/5
Support added for s132/s140 v6 in linker scripts and boards. Support removed for s132 v2/3/5. Download script updated to fetch new stacks and removed the non-supported ones. ble_drv.c updated to only handle s110 v8, and s132/s140 v6. ubluepy updated to continue scanning after each individual scan report reported to the module to keep old behaviour of the Scanner class.
Diffstat (limited to 'ports/nrf/modules')
-rw-r--r--ports/nrf/modules/ubluepy/ubluepy_scanner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/nrf/modules/ubluepy/ubluepy_scanner.c b/ports/nrf/modules/ubluepy/ubluepy_scanner.c
index 58b49b5df..f5c9a6dca 100644
--- a/ports/nrf/modules/ubluepy/ubluepy_scanner.c
+++ b/ports/nrf/modules/ubluepy/ubluepy_scanner.c
@@ -58,6 +58,9 @@ STATIC void adv_event_handler(mp_obj_t self_in, uint16_t event_id, ble_drv_adv_d
item->data = mp_obj_new_bytearray(data->data_len, data->p_data);
mp_obj_list_append(self->adv_reports, item);
+
+ // Continue scanning
+ ble_drv_scan_start(true);
}
STATIC void ubluepy_scanner_print(const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) {
@@ -94,7 +97,7 @@ STATIC mp_obj_t scanner_scan(mp_obj_t self_in, mp_obj_t timeout_in) {
ble_drv_adv_report_handler_set(MP_OBJ_FROM_PTR(self), adv_event_handler);
// start
- ble_drv_scan_start();
+ ble_drv_scan_start(false);
// sleep
mp_hal_delay_ms(timeout);