Changeset 2900 for branches/threaded/csctapi/ifd_cool.c
- Timestamp:
- 08/04/10 16:13:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/threaded/csctapi/ifd_cool.c
r2561 r2900 17 17 int cardbuflen = 0; 18 18 19 int Cool_Init ( )19 int Cool_Init (char *device) 20 20 { 21 int reader_nb = 0; 21 22 if (cnxt_kal_initialize ()) 22 23 return FALSE; … … 27 28 if (cnxt_smc_init (NULL) != 1) 28 29 return FALSE; 29 30 int reader = 0; 31 if (cnxt_smc_open (&handle, &reader)) 30 31 // this is to stay compatible with olfer config. 32 if(!strlen(device)) 33 reader_nb=0; 34 else 35 reader_nb=atoi((const char *)device); 36 if(reader_nb>1) { 37 // there are only 2 readers in the coolstream : 0 or 1 38 cs_log("Coolstream reader device can only be 0 or 1"); 39 return FALSE; 40 } 41 if (cnxt_smc_open (&handle, &reader_nb)) 32 42 return FALSE; 33 43
Note:
See TracChangeset
for help on using the changeset viewer.