/[pcsclite]/trunk/Drivers/ccid/src/ccid_serial.c
ViewVC logotype

Diff of /trunk/Drivers/ccid/src/ccid_serial.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1399 by rousseau, Mon Mar 14 18:56:53 2005 UTC revision 1444 by rousseau, Tue Apr 26 12:38:25 2005 UTC
# Line 591  status_t OpenSerialByName(unsigned int r Line 591  status_t OpenSerialByName(unsigned int r
591                  DEBUG_INFO2("Firmware: %s", rx_buffer);                  DEBUG_INFO2("Firmware: %s", rx_buffer);
592          }          }
593    
594            /* perform a command to configure GemPC Twin reader card movement
595             * notification to synchronous mode: the card movement is notified _after_
596             * the host command and _before_ the reader anwser */
597            {
598                    unsigned char tx_buffer[] = { 0x01, 0x01, 0x01};
599                    unsigned char rx_buffer[50];
600                    unsigned int rx_length = sizeof(rx_buffer);
601    
602                    if (IFD_SUCCESS != CmdEscape(reader_index, tx_buffer, sizeof(tx_buffer),
603                            rx_buffer, &rx_length))
604                    {
605                            DEBUG_CRITICAL("Change card movement notification failed.");
606                            return STATUS_UNSUCCESSFUL;
607                    }
608            }
609    
610          return STATUS_SUCCESS;          return STATUS_SUCCESS;
611  } /* OpenSerialByName */  } /* OpenSerialByName */
612    

Legend:
Removed from v.1399  
changed lines
  Added in v.1444

  ViewVC Help
Powered by ViewVC 1.1.5