From b65c91ac647ba753f379d77c844ff917e6f972d8 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Tue, 7 Oct 2025 10:23:28 +0200 Subject: [PATCH] enter critical section only for Arduino Nano 33 BLE --- src/utility/HCICordioTransport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utility/HCICordioTransport.cpp b/src/utility/HCICordioTransport.cpp index 485585dd..8af0808d 100644 --- a/src/utility/HCICordioTransport.cpp +++ b/src/utility/HCICordioTransport.cpp @@ -311,7 +311,9 @@ size_t HCICordioTransportClass::write(const uint8_t* data, size_t length) void HCICordioTransportClass::handleRxData(uint8_t* data, uint8_t len) { { + #if defined(ARDUINO_ARCH_NRF52840) mbed::CriticalSectionLock critical_section; + #endif if (_rxBuf.availableForStore() < len) { // drop! return; @@ -321,7 +323,6 @@ void HCICordioTransportClass::handleRxData(uint8_t* data, uint8_t len) _rxBuf.store_char(data[i]); } } - bleEventFlags.set(0x01); }