Commit 01f8286b authored by DonLakeFlyer's avatar DonLakeFlyer

Fix reboot

parent 16953f67
......@@ -631,5 +631,9 @@ Error:
bool Bootloader::reboot(QSerialPort* port)
{
return _write(port, PROTO_BOOT) && _write(port, PROTO_EOC);
bool success = _write(port, PROTO_BOOT) && _write(port, PROTO_EOC);
if (success) {
port->waitForBytesWritten(100);
}
return success;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment