Skip to content

Commit 81cc1e1

Browse files
committed
exporter: fix SerialPortExport start params
The start params do not contain the speed for the serial port, but the local SerialPort resource does, so fetch it from there. Fixes: 162e903 ("exporter: Correctly handle serial baud rates other than 115200") Signed-off-by: Rouven Czerwinski <[email protected]> Tested-by: Gavin Schenk <[email protected]>
1 parent 3ab3248 commit 81cc1e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labgrid/remote/exporter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _start(self, start_params):
230230
'-d',
231231
'-n',
232232
'-Y', 'connection: &con01# accepter: telnet(rfc2217,mode=server),{}'.format(self.port),
233-
'-Y', ' connector: serialdev(nouucplock=true),{},{}n81,local'.format(start_params['path'], start_params['speed'],
233+
'-Y', ' connector: serialdev(nouucplock=true),{},{}n81,local'.format(start_params['path'], self.local.speed,
234234
),
235235
])
236236
else:
@@ -241,7 +241,7 @@ def _start(self, start_params):
241241
'-u',
242242
'-C',
243243
'{}:telnet:0:{}:{} NONE 8DATABITS 1STOPBIT LOCAL'.format(
244-
self.port, start_params['path'], start_params['speed']
244+
self.port, start_params['path'], self.local.speed
245245
),
246246
])
247247
try:

0 commit comments

Comments
 (0)