adjusted socat baudrate option

This commit is contained in:
Paul 2024-01-08 17:57:30 +01:00
parent 6b8187c2a4
commit 94be82dca6
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ addr = '/tmp/rfmtty'
addr_client = '/tmp/rfmtty_client'
baudrate = 115200
cmd=['/usr/bin/socat','-d','-d','PTY,link=%s,rawer,baud=%d' %(addr, baudrate), 'PTY,link=%s,rawer,baud=%d' %(addr_client, baudrate)]
cmd=['/usr/bin/socat','-d','-d','PTY,link=%s,rawer,b%d' %(addr, baudrate), 'PTY,link=%s,rawer,b%d' %(addr_client, baudrate)]
socat_proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(1)