feat(core): migrate to src/ package layout and refactor serial transport

Bootstrap PySide6 using a clean src/ layout and refactor stream_reader to parse binary data packets asynchronously.
This commit is contained in:
jack
2026-06-25 13:46:54 -07:00
parent 62ce5a9c37
commit 470f8acba3
3 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ from pygui.backend.data.file_browser import FileBrowser
from pygui.backend.data.local_settings import LocalSettings
from pygui.backend.data.local_settings_model import LocalSettingsModel
# Importing wafer_map_item registers the @QmlElement WaferMapItem (QML: import ISC.Wafer).
# Importing wafer_map_item + trend_chart_item registers @QmlElement types (QML: import ISC.Wafer).
# ===== Application Entry Point =====
+2 -3
View File
@@ -184,9 +184,8 @@ class StreamReader:
# Sync marker appeared hand off to binary parser.
hex_chars.append(byte)
break
c = chr(byte)
if c in "0123456789ABCDEFabcdef":
hex_chars.append(c)
if chr(byte) in "0123456789ABCDEFabcdef":
hex_chars.append(byte)
else:
continue
break # broke out of inner loop due to 0xAA