Download more RAM (reword this in a rebase plz)

This commit is contained in:
Josh Klar authored and Kyle Brown committed 2019-07-17 16:05:40 -07:00
1 parent d07560513f
commit 76087749fb
2 files changed
+5 -99

No files matched your search

+5
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