Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9dfa52b

Browse files
Merge pull request #412 from fabik111/fix-critical-section-for-opta
Enter critical section only for Arduino Nano 33 BLE
2 parents 059804f + b65c91a commit 9dfa52b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/utility/HCICordioTransport.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ size_t HCICordioTransportClass::write(const uint8_t* data, size_t length)
311311
void HCICordioTransportClass::handleRxData(uint8_t* data, uint8_t len)
312312
{
313313
{
314+
#if defined(ARDUINO_ARCH_NRF52840)
314315
mbed::CriticalSectionLock critical_section;
316+
#endif
315317
if (_rxBuf.availableForStore() < len) {
316318
// drop!
317319
return;
@@ -321,7 +323,6 @@ void HCICordioTransportClass::handleRxData(uint8_t* data, uint8_t len)
321323
_rxBuf.store_char(data[i]);
322324
}
323325
}
324-
325326
bleEventFlags.set(0x01);
326327
}
327328

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /