kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
gc.threshold() not available on all ports
rodzic
8160f5359f
commit
46aa2246c1
|
@ -536,6 +536,7 @@ class Screen:
|
|||
while Screen.do_gc:
|
||||
await asyncio.sleep_ms(500)
|
||||
gc.collect()
|
||||
if hasattr(gc, 'threshold'):
|
||||
gc.threshold(gc.mem_free() // 4 + gc.mem_alloc())
|
||||
n += 1
|
||||
n &= 0x1F
|
||||
|
|
Ładowanie…
Reference in New Issue