Skip to content

fix(interrupts): Add the callbacks to the list of root pointers

schneider requested to merge schneider/mpy-portstate into master

The garbage collector needs to be aware of the callbacks used for interrupts. Otherwise it might collect the objects which represent the callbacks. This can lead to hard to debug issues where the memory location of the callback gets overwritten by something else and the Python interpreter printing warnings like "can not call float object".

Merge request reports