right strip response end of line
This commit is contained in:
@@ -67,7 +67,7 @@ def main() -> int:
|
||||
while run.running:
|
||||
try:
|
||||
send(port, UPS_COMMAND)
|
||||
raw_data = receive(port, UPS_COMMAND).lstrip('(').split()
|
||||
raw_data = receive(port, UPS_COMMAND).lstrip('(').rstrip().split()
|
||||
if len(raw_data) < 8:
|
||||
LOGGER.error(f"Incomplete data: {raw_data}")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user