peterhinch / micropython-async

Application of uasyncio to hardware interfaces. Tutorial and code.
MIT License
739 stars 168 forks source link

Encoder gives TypeError on nighly builds #96

Closed OlafM2015 closed 1 year ago

OlafM2015 commented 1 year ago

Testing with the latest builds [v1.19.1-831-g4f3780a15 (2023-01-20) .uf2] the encoder with the test program

Gives an TypeError, not sure what is wrong (on the [v1.19.1 (2022-06-18)] it works fine?

MicroPython v1.19.1-831-g4f3780a15 on 2023-01-20; Raspberry Pi Pico with RP2040

%Run -c $EDITOR_CONTENT Running encoder test. Press ctrl-c to teminate. TypeError: TypeError:

Can you advise? Thanks

OlafM2015 commented 1 year ago

As far as I can see, the error occurs at (in enconder.py

await self._tsf.wait()

waiting on the ThreadSafeFlag(). Do not see why this occurs only in Nightly builds?

peterhinch commented 1 year ago

Thanks for the report.

Something has gone wrong in builds since 20th December last year. It seems to be something to do with Pin IRQ's. I'm having trouble creating a minimal repro, but when I do I'll raise an issue. In the mean time please use an earlier build.

peterhinch commented 1 year ago

I have raised this issue.

OlafM2015 commented 1 year ago

Excellent, thanks

peterhinch commented 1 year ago

Closing this as the maintainers have fixed it.

OlafM2015 commented 1 year ago

Excellent, Tested latest nightly build, works properly. Thanks