race in kw11-l
This commit is contained in:
parent
bd38702d5b
commit
cc38bd8b17
1 changed files with 5 additions and 0 deletions
|
@ -181,6 +181,11 @@ void kw11_l::write_byte(const uint16_t addr, const uint8_t value)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(BUILD_FOR_RP2040)
|
||||||
|
xSemaphoreTake(lf_csr_lock, portMAX_DELAY);
|
||||||
|
#else
|
||||||
|
std::unique_lock<std::mutex> lck(lf_csr_lock);
|
||||||
|
#endif
|
||||||
uint16_t vtemp = lf_csr;
|
uint16_t vtemp = lf_csr;
|
||||||
|
|
||||||
if (addr & 1) {
|
if (addr & 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue