mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
Possible fix for #78 - increase the wait timeout for discard when flashing PX4IO. It's not clear this solves the issue, but I can't reproduce it with this added.
This commit is contained in:
@@ -189,8 +189,10 @@ PX4IO_Uploader::drain()
|
||||
int ret;
|
||||
|
||||
do {
|
||||
ret = recv(c, 10);
|
||||
//log("discard 0x%02x", c);
|
||||
ret = recv(c, 250);
|
||||
if (ret == OK) {
|
||||
//log("discard 0x%02x", c);
|
||||
}
|
||||
} while (ret == OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user