[Git][NTPsec/ntpsec][master] Address GitLab issue #248: Serial port speed being changed to...

Eric S. Raymond gitlab at mg.gitlab.com
Tue Feb 21 14:39:41 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
fb1689ea by Eric S. Raymond at 2017-02-21T09:38:58-05:00
Address GitLab issue #248: Serial port speed being changed to...

...9600 by ntpd 0.9.6 despite conf.

- - - - -


1 changed file:

- ntpd/refclock_nmea.c


Changes:

=====================================
ntpd/refclock_nmea.c
=====================================
--- a/ntpd/refclock_nmea.c
+++ b/ntpd/refclock_nmea.c
@@ -412,7 +412,7 @@ nmea_start(
 	switch (rate) {
 	case 0:
 	case 4800:
-		baudrate = SPEED232;
+		baudrate = 4800;
 		baudtext = "4800";
 		break;
 	case 1:
@@ -446,7 +446,11 @@ nmea_start(
 #endif
 	default:
 		baudrate = SPEED232;
+#ifdef ENABLE_CLASSIC_MODE
 		baudtext = "4800 (fallback)";
+#else
+		baudtext = "9600 (fallback)";
+#endif
 		break;
 	}
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/fb1689ea4e62613dffacbcda45e4543316eebbdb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170221/44d9c603/attachment.html>


More information about the vc mailing list