Skip to content

Commit 9cf284f

Browse files
committed
Ugly fix delay
1 parent 6e95133 commit 9cf284f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/utility/HCISpiTransport.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ int HCISpiTransportClass::available()
113113

114114
data_avail = 0;
115115

116+
// Wait for BlueNRG-LP to be ready (needs to be done after each HCI RESET)
117+
if (_ble_chip == BLUENRG_LP && _initial_phase) {
118+
delay(100);
119+
}
120+
116121
while (digitalRead(_spi_irq) == 1 && _write_index != BLE_MODULE_SPI_BUFFER_SIZE) {
117122
uint8_t header_master[5] = {0x0b, 0x00, 0x00, 0x00, 0x00};
118123

0 commit comments

Comments
 (0)