1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
19921: dist/tools/pyterm: set exclusive access on port r=benpicco a=benpicco




Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
This commit is contained in:
bors[bot] 2023-09-13 11:22:52 +00:00 committed by GitHub
commit e15304788b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,7 +654,7 @@ class SerCmd(cmd.Cmd):
self.process_line(line)
def serial_connect(self):
self.ser = serial.Serial(port=self.port, dsrdtr=0, rtscts=0)
self.ser = serial.Serial(port=self.port, dsrdtr=0, rtscts=0, exclusive=1)
self.ser.baudrate = self.baudrate
if self.toggle: