# HG changeset patch # User Jeandet Alexis # Date 2014-01-13 19:13:17 # Node ID 21b605b21a3e3b77c6a345dd0a218060a003e729 # Parent 06a15f9219de1a78100a2a61d71a006683b448d4 added 3Mbaud for unix diff --git a/src/RS232_unix.c b/src/RS232_unix.c --- a/src/RS232_unix.c +++ b/src/RS232_unix.c @@ -326,8 +326,30 @@ rs232speed_t rs232cfspeed(unsigned int B if(BaudeRate<172800) return B115200; + + if(BaudeRate<345600) + return B230400; + + if(BaudeRate<345600) + return B460800; + + if(BaudeRate<748800) + return B576000; + + if(BaudeRate<1210800) + return B921600; + + if(BaudeRate<1750000) + return B1500000; + + if(BaudeRate<2250000) + return B2000000; + + if(BaudeRate<2750000) + return B2500000; else - return B230400; + return B3000000; + }