# HG changeset patch # User Mychaela Falconia # Date 1540756986 0 # Node ID 7eddc2578fdb7879dc4848b60a80c771e15b4363 # Parent dd0247097097171b21afd6dd4059de6a4b1c9431 fcup-atinterf: added 20 ms serial flush diff -r dd0247097097 -r 7eddc2578fdb uptools/atinterf/fcup-atinterf.c --- a/uptools/atinterf/fcup-atinterf.c Sun Oct 28 00:38:13 2018 +0000 +++ b/uptools/atinterf/fcup-atinterf.c Sun Oct 28 20:03:06 2018 +0000 @@ -4,6 +4,7 @@ #include #include #include +#include #include extern int target_fd; @@ -155,6 +156,8 @@ if (argc > 3) wakeup_after_sec = strtoul(argv[3], 0, 0); + usleep(20000); + tcflush(target_fd, TCIFLUSH); set_serial_nonblock(0); target_rd = fdopen(target_fd, "r"); if (!target_rd) {