This commit is contained in:
2026-03-01 11:11:56 +01:00
parent c914333236
commit 844e8e06ca
17 changed files with 624 additions and 79 deletions

View File

@@ -8,13 +8,10 @@ def execute(conn, path: str) -> dict:
raise BuzzerError("Keine Antwort auf 'check' empfangen.")
parts = lines[0].split()
if len(parts) != 3 or parts[0] != "CRC32":
if len(parts) != 1:
raise BuzzerError(f"Unerwartetes Check-Format: {lines[0]}")
if parts[1] != path:
raise BuzzerError(f"Unerwarteter Pfad in Check-Antwort: {parts[1]} (erwartet: {path})")
crc32 = int(parts[2], 16)
crc32 = int(parts[0], 16)
return {
"crc32": crc32