tested scan-n-bag feature

This commit is contained in:
Peter D. Gray 2024-01-10 11:09:26 -05:00
parent fc0ad052dd
commit fb7cdd7d98
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -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