SerialPortTimeouts does not work

Post bugreports for the Linux version here
User_Russian
Addict
Addict
Posts: 1157
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

SerialPortTimeouts does not work

Post by User_Russian »

Code: Select all

If OpenSerialPort(0, "/dev/ttyUSB0", 115200, #PB_SerialPort_NoParity, 8, 1, #PB_SerialPort_NoHandshake, 1024, 1024)
  SerialPortTimeouts(Port, 10000, 10000, 200, 1000, 10000)
  t=ElapsedMilliseconds()
  
  ReadSerialPortData(0, @x, 1)
  
  Debug ElapsedMilliseconds()-t
EndIf
Debug return 0.
User_Russian
Addict
Addict
Posts: 1157
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: SerialPortTimeouts does not work

Post by User_Russian »

I just checked in MacOS and had exactly the same problem. Debug return 0.
Windows doesn't have this problem.
Post Reply