Technician tool v0.2

Imported from the Google Drive folder 004-technician_tool/v0.2.
This commit is contained in:
kkallas committed 2026-09-26 16:53:59 +02:00
1 parent e5a33a1c34
commit e8b72b743d
17 files changed
+2410 -283

No files matched your search

+7
View File
@@ -33,6 +33,13 @@ class SessionLog:
self._fh.write(f"[{ts}] {line.text}\n")
self._fh.flush()
def write_report(self, text: str) -> None:
"""Append the diagnosis at the end of the session (for the firmware team)."""
if self._fh is None:
return
self._fh.write("\n===== Diagnosis at end of session =====\n" + text + "\n")
self._fh.flush()
def stop(self) -> None:
if self._fh is not None:
self._fh.close()