Skip to content

Commit

Permalink
Merge #19921
Browse files Browse the repository at this point in the history
19921: dist/tools/pyterm: set exclusive access on port r=benpicco a=benpicco




Co-authored-by: Benjamin Valentin <[email protected]>
  • Loading branch information
bors[bot] and benpicco authored Sep 13, 2023
2 parents d9367b1 + dad593a commit e153047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/tools/pyterm/pyterm
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e153047

Please sign in to comment.