From fb7cdd7d98d3f1bea0dead42068c355737ae01dc Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Wed, 10 Jan 2024 11:09:26 -0500 Subject: [PATCH] tested scan-n-bag feature --- shared/q1.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/q1.py b/shared/q1.py index 46f3c018..94d1c23e 100644 --- a/shared/q1.py +++ b/shared/q1.py @@ -43,6 +43,7 @@ async def scan_and_bag(*a): import callgate from ux import ux_show_story from ux_q1 import QRScannerInteraction + from uasyncio import sleep try: assert settings.get('tested', False), 'Not tested yet' @@ -77,12 +78,13 @@ async def scan_and_bag(*a): pa.greenlight_firmware() # we are done. - dis.clear() + dis.real_clear() dis.text(None, 3, bag_num, invert=1) dis.text(None, 6, "Put into bag and seal now.") dis.show() + # lockup but keep the power btn working... while 1: - pass + await sleep(10) # EOF