uasyncio lock not working
Posted: Wed Feb 17, 2021 12:20 pm
Hi
I am running on: MicroPython v1.14-56-g5cb91afb9 on 2021-02-17; PYBD-SF6W with STM32F767IIK
and the below prints False. Any ideas how to get this working?
import uasyncio
l = uasyncio.Lock()
l.acquire()
print("locked ", l.locked())
Device path COM10
Quit: Ctrl+] | Stop program: Ctrl+C | Reset: Ctrl+D
Type 'help()' (without the quotes) then press ENTER.
locked False
MicroPython v1.14-56-g5cb91afb9 on 2021-02-17; PYBD-SF6W with STM32F767IIK
Type "help()" for more information.
>>>
>>>
>>>
I am running on: MicroPython v1.14-56-g5cb91afb9 on 2021-02-17; PYBD-SF6W with STM32F767IIK
and the below prints False. Any ideas how to get this working?
import uasyncio
l = uasyncio.Lock()
l.acquire()
print("locked ", l.locked())
Device path COM10
Quit: Ctrl+] | Stop program: Ctrl+C | Reset: Ctrl+D
Type 'help()' (without the quotes) then press ENTER.
locked False
MicroPython v1.14-56-g5cb91afb9 on 2021-02-17; PYBD-SF6W with STM32F767IIK
Type "help()" for more information.
>>>
>>>
>>>