Communication speed is 115200

This commit is contained in:
Petr Baudis 2012-07-21 00:05:27 +02:00 committed by brmlab
parent 08c58e3716
commit b4d1199282
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -23,7 +23,7 @@ def main():
except getopt.GetOptError: except getopt.GetOptError:
print_usage() print_usage()
return 1 return 1
speed = 38400 speed = 115200
number = 10 number = 10
show_help = False show_help = False
for k, v in opts: for k, v in opts: