diff --git a/kmk/keys.py b/kmk/keys.py index adac12f..8199889 100644 --- a/kmk/keys.py +++ b/kmk/keys.py @@ -1,3 +1,4 @@ +import gc from micropython import const import kmk.handlers.stock as handlers @@ -804,6 +805,8 @@ def make_key(code=None, names=tuple(), type=KEY_SIMPLE, **kwargs): # NOQA register_key_names(key, names) + gc.collect() + return key