Download more RAM (reword this in a rebase plz)

This commit is contained in:
Josh Klar
2019-07-12 18:36:16 -07:00
committed by Kyle Brown
parent d07560513f
commit 76087749fb
2 changed files with 5 additions and 99 deletions

View File

@@ -1,3 +1,5 @@
import gc
import kmk.handlers.layers as layers
import kmk.handlers.modtap as modtap
import kmk.handlers.stock as handlers
@@ -285,6 +287,7 @@ def make_key(
'''
global NEXT_AVAILABLE_KEY
gc.collect()
if type == KEY_SIMPLE:
constructor = Key
@@ -306,7 +309,9 @@ def make_key(
key = constructor(code=code, **kwargs)
gc.collect()
register_key_names(key, names)
gc.collect()
return key