mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
proxyclient: Expect m1n1 at /dev/ttyACM0
Change the default serial port. Signed-off-by: Martin Povišer <povik@protonmail.com>
This commit is contained in:
parent
e1515b4376
commit
925215aea2
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ class UartInterface(Reloadable):
|
|||
self.debug = debug
|
||||
self.devpath = None
|
||||
if device is None:
|
||||
device = os.environ.get("M1N1DEVICE", "/dev/ttyUSB0:115200")
|
||||
device = os.environ.get("M1N1DEVICE", "/dev/ttyACM0:115200")
|
||||
if isinstance(device, str):
|
||||
baud = 115200
|
||||
if ":" in device:
|
||||
|
@ -990,7 +990,7 @@ __all__.extend(k for k, v in globals().items()
|
|||
|
||||
if __name__ == "__main__":
|
||||
import serial
|
||||
uartdev = os.environ.get("M1N1DEVICE", "/dev/ttyUSB0")
|
||||
uartdev = os.environ.get("M1N1DEVICE", "/dev/ttyACM0")
|
||||
usbuart = serial.Serial(uartdev, 115200)
|
||||
uartif = UartInterface(usbuart, debug=True)
|
||||
print("Sending NOP...", end=' ')
|
||||
|
|
Loading…
Reference in a new issue