stop uploading region if line is empty

This commit is contained in:
Florent 2026-02-05 11:59:52 -04:00
parent f41ee950b1
commit f3b1319eda

View file

@ -4058,6 +4058,8 @@ async def repeater_loop(port, baudrate):
with open(file_path, "r") as file:
ser.write("region load\r".encode())
for line in file:
if line.strip() == "": # terminate on empty line
break
ser.write(f"{line.rstrip()}\r".encode())
ser.write("\r".encode())