svn commit: r279756 - head/sys/dev/usb/serial

Hans Petter Selasky hselasky at FreeBSD.org
Sat Mar 7 22:46:36 UTC 2015


Author: hselasky
Date: Sat Mar  7 22:46:35 2015
New Revision: 279756
URL: https://svnweb.freebsd.org/changeset/base/279756

Log:
  Use correct mode variable for PPS support.
  
  PR:		196897
  Submitted by:	ian @
  MFC after:	1 week

Modified:
  head/sys/dev/usb/serial/usb_serial.c

Modified: head/sys/dev/usb/serial/usb_serial.c
==============================================================================
--- head/sys/dev/usb/serial/usb_serial.c	Sat Mar  7 21:31:37 2015	(r279755)
+++ head/sys/dev/usb/serial/usb_serial.c	Sat Mar  7 22:46:35 2015	(r279756)
@@ -1105,7 +1105,7 @@ ucom_cfg_status_change(struct usb_proc_m
 	/* time pulse counting support */
 	switch(ucom_pps_mode) {
 	case 1:
-		if ((sc->sc_pps.ppscap & PPS_CAPTUREBOTH) &&
+		if ((sc->sc_pps.ppsparam.mode & PPS_CAPTUREBOTH) &&
 		    (msr_delta & SER_CTS)) {
 			pps_capture(&sc->sc_pps);
 			pps_event(&sc->sc_pps, (sc->sc_msr & SER_CTS) ?
@@ -1113,7 +1113,7 @@ ucom_cfg_status_change(struct usb_proc_m
 		}
 		break;
 	case 2:
-		if ((sc->sc_pps.ppscap & PPS_CAPTUREBOTH) &&
+		if ((sc->sc_pps.ppsparam.mode & PPS_CAPTUREBOTH) &&
 		    (msr_delta & SER_DCD)) {
 			pps_capture(&sc->sc_pps);
 			pps_event(&sc->sc_pps, (sc->sc_msr & SER_DCD) ?


More information about the svn-src-head mailing list