You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this on a ESP32-S2 (MagTag and UM Feather S2) directly after it boots up the printouts are as expected. The True and False values print correctly, as well as the numbers from _buttons.get_pressed() have the correct value.
But if I restart this script by using ctrl-c then ctrl-d the values from _buttons.get_pressed() will start to always show 0. The values from btn_a.value and btn_b.value still correctly change from True to False when I press buttons. But the gamepad values seem to get stuck on 0 after restarting this way.
The same code run on a CLUE and prints correct values both before and after restarting with ctrl-c / ctrl-d.
The text was updated successfully, but these errors were encountered:
I had thought maybe the tick disable problem in #3710 could have fixed/improved this. However, now this seems to be resetting the magtag each time I reload the test program. Not good. I did my testing with the artifact from #3718 which doesn't have the fix from #3716 which is causing general instability so maybe not a good test.
This could be somehow related to the long-lived object handling. The gampead singleton is created as a long-lived object, maybe it's not getting reset properly? I can't see anything immediately obvious in the code, though.
Using this script:
When I run this on a ESP32-S2 (MagTag and UM Feather S2) directly after it boots up the printouts are as expected. The
True
andFalse
values print correctly, as well as the numbers from_buttons.get_pressed()
have the correct value.But if I restart this script by using ctrl-c then ctrl-d the values from
_buttons.get_pressed()
will start to always show0
. The values frombtn_a.value
andbtn_b.value
still correctly change from True to False when I press buttons. But the gamepad values seem to get stuck on0
after restarting this way.The same code run on a CLUE and prints correct values both before and after restarting with ctrl-c / ctrl-d.
The text was updated successfully, but these errors were encountered: