Changeset 1168 for trunk/csctapi/protocol_t0.c
- Timestamp:
- 01/10/10 18:47:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/protocol_t0.c
r1137 r1168 827 827 828 828 /* Initialise transmission */ 829 #ifndef NO_PAR_SWITCH830 829 if (ICC_Async_BeginTransmission (t0->icc) != ICC_ASYNC_OK) 831 830 { … … 833 832 return PROTOCOL_T0_ICC_ERROR; 834 833 } 835 #endif836 834 837 835 /* Send header bytes */ 838 836 if (ICC_Async_Transmit (t0->icc, 5, APDU_Cmd_Header (cmd)) != ICC_ASYNC_OK) 839 837 { 840 #ifndef NO_PAR_SWITCH841 838 ICC_Async_EndTransmission (t0->icc); 842 #endif843 839 844 840 (*rsp) = NULL; … … 989 985 990 986 /* End of transmission */ 991 #ifndef NO_PAR_SWITCH992 987 if (ICC_Async_EndTransmission (t0->icc) != ICC_ASYNC_OK) 993 988 return PROTOCOL_T0_ICC_ERROR; 994 #endif995 989 996 990 return (ret); … … 1020 1014 1021 1015 /* Initialise transmission */ 1022 #ifndef NO_PAR_SWITCH1023 1016 if (ICC_Async_BeginTransmission (t14->icc) != ICC_ASYNC_OK) 1024 1017 { … … 1026 1019 return PROTOCOL_T14_ICC_ERROR; 1027 1020 } 1028 #endif1029 1021 1030 1022 if(t14->icc->ifd->io->com!=RTYP_SCI) … … 1033 1025 if (ICC_Async_Transmit (t14->icc, 1, &b1) != ICC_ASYNC_OK) 1034 1026 { 1035 #ifndef NO_PAR_SWITCH1036 1027 ICC_Async_EndTransmission (t14->icc); 1037 #endif1038 1028 1039 1029 (*rsp) = NULL; … … 1044 1034 if (ICC_Async_Transmit (t14->icc, cmd_len, cmd_raw) != ICC_ASYNC_OK) 1045 1035 { 1046 #ifndef NO_PAR_SWITCH1047 1036 ICC_Async_EndTransmission (t14->icc); 1048 #endif1049 1037 1050 1038 (*rsp) = NULL; … … 1055 1043 if (ICC_Async_Transmit (t14->icc, 1, &ixor) != ICC_ASYNC_OK) 1056 1044 { 1057 #ifndef NO_PAR_SWITCH1058 1045 ICC_Async_EndTransmission (t14->icc); 1059 #endif1060 1046 1061 1047 (*rsp) = NULL; … … 1072 1058 if (ICC_Async_Transmit (t14->icc, cmd_len+2, buffer) != ICC_ASYNC_OK) 1073 1059 { 1074 #ifndef NO_PAR_SWITCH1075 1060 ICC_Async_EndTransmission (t14->icc); 1076 #endif1077 1061 1078 1062 (*rsp) = NULL; … … 1163 1147 1164 1148 /* End of transmission */ 1165 #ifndef NO_PAR_SWITCH1166 1149 if (ICC_Async_EndTransmission (t14->icc) != ICC_ASYNC_OK) 1167 1150 return PROTOCOL_T14_ICC_ERROR; 1168 #endif1169 1151 1170 1152 return (ret);
Note:
See TracChangeset
for help on using the changeset viewer.