Skip to content

Commit 1247c2b

Browse files
committed
m1n1.proxy: Default to /dev/m1n1
We have udev rules, let's just default to a pretty device name to avoid conflicts with other devices. Signed-off-by: Hector Martin <[email protected]>
1 parent 0cf1f39 commit 1247c2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxyclient/m1n1/proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self, device=None, debug=False):
135135
self.debug = debug
136136
self.devpath = None
137137
if device is None:
138-
device = os.environ.get("M1N1DEVICE", "/dev/ttyACM0:115200")
138+
device = os.environ.get("M1N1DEVICE", "/dev/m1n1:115200")
139139
if isinstance(device, str):
140140
baud = 115200
141141
if ":" in device:
@@ -1076,7 +1076,7 @@ def dapf_init(self, path):
10761076

10771077
if __name__ == "__main__":
10781078
import serial
1079-
uartdev = os.environ.get("M1N1DEVICE", "/dev/ttyACM0")
1079+
uartdev = os.environ.get("M1N1DEVICE", "/dev/m1n1")
10801080
usbuart = serial.Serial(uartdev, 115200)
10811081
uartif = UartInterface(usbuart, debug=True)
10821082
print("Sending NOP...", end=' ')

0 commit comments

Comments
 (0)