Change serial speed from 115200 to 57600

With non-blinkenlight setups, 115200 communication is not reliable at all. About 26kbaud should be enough bandwidth anyway.
This commit is contained in:
Petr Baudis 2012-08-19 21:31:31 +02:00
parent ab83b7ea0f
commit 77f6d83bac
3 changed files with 3 additions and 3 deletions

View file

@ -341,7 +341,7 @@ int main(int argc, char* argv[])
if (fp) {
struct termios t;
tcgetattr(fileno(fp), &t);
cfsetspeed(&t, B115200);
cfsetspeed(&t, B57600);
tcsetattr(fileno(fp), TCSADRAIN, &t);
sleep(2);
}