Normalize primary communication around UART

This commit is contained in:
root
2026-06-03 02:08:19 -06:00
parent 08a8275a29
commit b494a98de4
15 changed files with 64 additions and 54 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import random
import time
class RS485Transport:
class UARTTransport:
def __init__(self, controller):
self.controller = controller
self.connected = True
@@ -14,7 +14,7 @@ class RS485Transport:
return {
"type": "error",
"success": False,
"error": "RS-485 disconnected"
"error": "UART disconnected"
}
if self.latency_ms > 0:
@@ -25,7 +25,7 @@ class RS485Transport:
return {
"type": "error",
"success": False,
"error": "RS-485 packet lost"
"error": "UART packet lost"
}
return self.controller.handle_message(message)