From bc1e0cc678b67a487dc1054e9720cf29e3ded43a Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Tue, 18 Aug 2020 17:13:02 -0500 Subject: [PATCH] https://github.com/Hamlib/Hamlib/issues/358 Added 50ms wait after serial port is opened. MicroKeyer was rejecting "ID" command as it was too fast. Values at 20ms or less weren't working so doing 2* safety factor This shouldn't harm any other things going on. --- src/serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serial.c b/src/serial.c index 526dc8956..b3c9a3bb3 100644 --- a/src/serial.c +++ b/src/serial.c @@ -227,6 +227,7 @@ int HAMLIB_API serial_open(hamlib_port_t *rp) } serial_flush(rp); // ensure nothing is there when we open + hl_usleep(50 * 1000); // give a little time for MicroKeyer to finish return RIG_OK; } @@ -335,6 +336,7 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) break; #ifdef B230400 + case 230400: speed = B230400; /* super awesome! */ break;