Changeset 1240 for branches/monitor-improvement/csctapi/pps.c
- Timestamp:
- 01/15/10 19:59:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/monitor-improvement/csctapi/pps.c
r1228 r1240 432 432 #include "sci_global.h" 433 433 #include "sci_ioctl.h" 434 if( pps->icc->ifd->io->reader_type== R_INTERNAL)434 if(reader[ridx].typ == R_INTERNAL) 435 435 { 436 436 int n; 437 437 SCI_PARAMETERS params; 438 438 //memset(¶ms,0,sizeof(SCI_PARAMETERS)); 439 if (ioctl( pps->icc->ifd->io->fd, IOCTL_GET_PARAMETERS, ¶ms) < 0 )439 if (ioctl(reader[ridx].handle, IOCTL_GET_PARAMETERS, ¶ms) < 0 ) 440 440 return PPS_ICC_ERROR; 441 441 … … 461 461 cs_debug("Setting T=%d fs=%lu mhz ETU=%d WWT=%d CWT=%d BWT=%d EGT=%d clock=%d check=%d P=%d I=%d U=%d", (int)params.T, params.fs, (int)params.ETU, (int)params.WWT, (int)params.CWT, (int)params.BWT, (int)params.EGT, (int)params.clock_stop_polarity, (int)params.check, (int)params.P, (int)params.I, (int)params.U); 462 462 463 if (ioctl( pps->icc->ifd->io->fd, IOCTL_SET_PARAMETERS, ¶ms)!=0)463 if (ioctl(reader[ridx].handle, IOCTL_SET_PARAMETERS, ¶ms)!=0) 464 464 return PPS_ICC_ERROR; 465 465
Note:
See TracChangeset
for help on using the changeset viewer.