Normalize primary communication around UART
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user