diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2017-10-22 00:50:58 +0200 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-10-22 20:54:10 -0700 |
| commit | 1c97b7f4df63e5fcac655b2749e861eeba4ef79f (patch) | |
| tree | 8db7386d64c43d0ee5c4fe5349c3f225a8247f95 /py/stackctrl.c | |
| parent | a1be272b1e30d90fedb2d13051374d774e84d248 (diff) | |
Gracefully reset the gamepad module
If a soft reset happens while the gamepad module is scanning for button
presses, there is a moment when the pins get de-initialized, but the
gamepad module is still trying to read them, which ends in a crash.
We can avoid it by disabling scanning on reset.
(cherry picked from commit 470a23d4c9345785bbaa830fdc036b4e982496c6)
Conflicts:
atmel-samd/main.c
Diffstat (limited to 'py/stackctrl.c')
0 files changed, 0 insertions, 0 deletions
