freebsd-ports/net/ntp/files/patch-ntpd::refclock_jjy.c
Cy Schubert a10ce4aa5f Fix jjy driver. This patch fixes an invalid command to the
C-DEX JST2000.

Submitted by:	nork
Reviewed by:	Harlan Stenn <stenn@whimsy.udel.edu>
2002-07-12 18:50:34 +00:00

11 lines
321 B
C

--- ntpd/refclock_jjy.c.orig Thu Jan 17 10:40:53 2002
+++ ntpd/refclock_jjy.c Fri Jul 12 11:37:44 2002
@@ -701,7 +701,7 @@
* Send "<ENQ>1J<ETX>" command
*/
- if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) {
+ if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) {
refclock_report ( peer, CEVNT_FAULT ) ;
}