File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 41
41
Add pretokenisation of 8/16 bit ints (fix #2563)
42
42
nRF5x: Fix BLE connection timeout (was 40ms, not 4s) for more reliable outgoing connections
43
43
Bangle.js2/Jolt.js: Increase GAP_EVENT_LENGTH to allow coded phy connections (1.2k more RAM used)
44
+ nRF52840: Ensure scannable is disabled (and warn) when advertising on coded phy
44
45
45
46
2v25 : ESP32C3: Get analogRead working correctly
46
47
Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535)
Original file line number Diff line number Diff line change @@ -2787,9 +2787,14 @@ uint32_t jsble_advertising_start() {
2787
2787
? (non_scannable ? BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED : BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED )
2788
2788
: (non_scannable ? BLE_GAP_ADV_TYPE_CONNECTABLE_NONSCANNABLE_DIRECTED : BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED );
2789
2789
} else { // coded/2mbps - force use of extended advertising
2790
+ if (!non_scannable ) {
2791
+ jsWarn ("Extended/coded advertisements can only be used with scannable:false. Disabling scan response.\n" );
2792
+ bleStatus |= BLE_IS_NOT_SCANNABLE ;
2793
+ non_scannable = true;
2794
+ }
2790
2795
adv_params .properties .type = non_connectable
2791
2796
? (non_scannable ? BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED : BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED )
2792
- : ( non_scannable ? BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED : BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED ) ;
2797
+ : BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED ;
2793
2798
}
2794
2799
#else
2795
2800
adv_params .type = non_connectable
You can’t perform that action at this time.
0 commit comments