Skip to content

Commit 97ab4d4

Browse files
authored
Add full M3Y support and fix QR scanning issues for GM65 and M3Y (#335)
- Implement full M3Y scanner support (light, aim, sound, read/stop commands, serial mode, high-speed baudrate, and factory reset) - Improve QR data reading with end-of-line validation to ensure complete frames - Fix scanners stopping while reading animated QR codes - Fix GM65 failing to read single large QR codes by increasing UART buffer from 2048 to 4096 bytes - Fix rare LVGL recolor markup line-break issue in animated Specter pMofN QR progress that caused hex color codes (e.g. 00F100) to render incorrectly Closes #314
1 parent 1f98790 commit 97ab4d4

File tree

2 files changed

+361
-122
lines changed

2 files changed

+361
-122
lines changed

src/gui/screens/progress.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def tick(self, d: int = 10):
2828
self.arc.set_angles(self.start, self.end)
2929

3030
def set_progress(self, val):
31-
txt = ""
3231
if isinstance(val, list):
33-
ok = "#00F100 " + lv.SYMBOL.OK + " # "
34-
no = "#FF9A00 " + lv.SYMBOL.CLOSE + " # "
35-
txt = " ".join([ok if e else no for e in val])
32+
ok = "#00F100 " + lv.SYMBOL.OK + "# "
33+
no = "#FF9A00 " + lv.SYMBOL.CLOSE + "# "
34+
self.progress.set_text(" ".join(ok if e else no for e in val))
3635
elif val > 0:
37-
txt = "%d%%" % int(val * 100)
38-
self.progress.set_text(txt)
36+
self.progress.set_text("%d%%" % int(val * 100))
37+
else:
38+
self.progress.set_text("")

0 commit comments

Comments
 (0)