race in kw11-l
This commit is contained in:
parent
cc38bd8b17
commit
f7896669aa
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ void kw11_l::begin(console *const cnsl)
|
||||||
|
|
||||||
void kw11_l::reset()
|
void kw11_l::reset()
|
||||||
{
|
{
|
||||||
|
#if defined(BUILD_FOR_RP2040)
|
||||||
|
xSemaphoreTake(lf_csr_lock, portMAX_DELAY);
|
||||||
|
#else
|
||||||
|
std::unique_lock<std::mutex> lck(lf_csr_lock);
|
||||||
|
#endif
|
||||||
lf_csr = 0;
|
lf_csr = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue