diff options
| author | dherrada <=> | 2020-05-18 19:01:50 -0400 |
|---|---|---|
| committer | dherrada <=> | 2020-05-18 19:01:50 -0400 |
| commit | 0fa5f6a0dd72d98551079db070efcabdbd2ae2b1 (patch) | |
| tree | 8de5959a69b4d42d527745ce42af48fc6fa48b28 /shared-module/gamepadshift/GamePadShift.c | |
| parent | cf524cb6b19dc971610452986f1ce8d1001d9d7e (diff) | |
| parent | e67d6756d1dbfe2e7b61b1fbfc2357c3f1f56639 (diff) | |
Merge branch 'extract-types' of https://github.com/dherrada/circuitpython into extract-types
Diffstat (limited to 'shared-module/gamepadshift/GamePadShift.c')
| -rw-r--r-- | shared-module/gamepadshift/GamePadShift.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/gamepadshift/GamePadShift.c b/shared-module/gamepadshift/GamePadShift.c index b8fb4d3f4..51da61702 100644 --- a/shared-module/gamepadshift/GamePadShift.c +++ b/shared-module/gamepadshift/GamePadShift.c @@ -27,6 +27,7 @@ #include "py/mpstate.h" #include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-module/gamepadshift/GamePadShift.h" +#include "supervisor/shared/tick.h" void common_hal_gamepadshift_gamepadshift_init(gamepadshift_obj_t *gamepadshift, digitalio_digitalinout_obj_t *clock_pin, @@ -46,4 +47,5 @@ void common_hal_gamepadshift_gamepadshift_init(gamepadshift_obj_t *gamepadshift, void common_hal_gamepadshift_gamepadshift_deinit(gamepadshift_obj_t *gamepadshift) { MP_STATE_VM(gamepad_singleton) = NULL; + supervisor_disable_tick(); } |
