Skip to content

Commit 8f01ccd

Browse files
Merge branch 'master' into capture_acheived_baud
2 parents 3740aa4 + 63180ab commit 8f01ccd

File tree

7 files changed

+26
-9
lines changed

7 files changed

+26
-9
lines changed

cores/rp2040/RP2040Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
22
#define ARDUINO_PICO_MAJOR 5
33
#define ARDUINO_PICO_MINOR 4
4-
#define ARDUINO_PICO_REVISION 1
5-
#define ARDUINO_PICO_VERSION_STR "5.4.1"
4+
#define ARDUINO_PICO_REVISION 2
5+
#define ARDUINO_PICO_VERSION_STR "5.4.2"

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = u'5.4.1'
57+
version = u'5.4.2'
5858
# The full version, including alpha/beta/rc tags.
59-
release = u'5.4.1'
59+
release = u'5.4.2'
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

libraries/BluetoothHCI/src/BluetoothHCI.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ class BluetoothHCI {
4949

5050
void scanFree(); // Free allocated scan buffers
5151

52+
bool connected() {
53+
return _hciConn != HCI_CON_HANDLE_INVALID;
54+
}
55+
5256
friend class BluetoothHIDMaster;
5357

5458
protected:

libraries/BluetoothHIDMaster/src/BluetoothHIDMaster.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,22 @@ bool BluetoothHIDMaster::connectBLE(const uint8_t *addr, int addrType) {
225225
}
226226
uint8_t a[6];
227227
memcpy(a, addr, sizeof(a));
228-
return ERROR_CODE_SUCCESS == gap_connect(a, (bd_addr_type_t)addrType);
228+
if (ERROR_CODE_SUCCESS != gap_connect(a, (bd_addr_type_t)addrType)) {
229+
return false;
230+
}
231+
// GAP connection running async. Wait for HCI connect
232+
uint32_t now = millis();
233+
while (millis() - now < 5000) {
234+
if (_hci.connected()) {
235+
break;
236+
}
237+
delay(25);
238+
}
239+
if (!_hci.connected()) {
240+
gap_connect_cancel();
241+
return false;
242+
}
243+
return _hci.connected();
229244
}
230245

231246
bool BluetoothHIDMaster::connectBLE() {

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ bool LwipIntfDev<RawDev>::begin(const uint8_t* macAddress, const uint16_t mtu) {
349349
lwip_init();
350350
__startEthernetContext();
351351

352-
memset(&_netif, 0, sizeof(_netif));
353-
354352
if (RawDev::needsSPI()) {
355353
_spiUnit.begin();
356354
// Set SPI clocks/etc. per request, doesn't seem to be direct way other than a fake transaction

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "framework-arduinopico",
3-
"version": "1.50401.0",
3+
"version": "1.50402.0",
44
"description": "Arduino Wiring-based Framework (RPi Pico RP2040, RP2350)",
55
"keywords": [
66
"framework",

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
2121

2222
name=Raspberry Pi RP2040/RP2350 Boards
23-
version=5.4.1
23+
version=5.4.2
2424

2525
# Required discoveries and monitors
2626
# ---------------------------------

0 commit comments

Comments
 (0)