printf ( "(Press ESC to cancel)\n\n" );
//
// *******************************************************
// * Step 2: prepare the MSR to read data.
*
// *******************************************************
//
if ( !padGetMagTrack ( 0,0,0 ) )
{
printf ( "ERROR: No Magnetic Stripe Reader found\n\n" );
printf ( "\n\nPress any key\n" );
while ( !kbhit () );
padOff ();
return;
}
//
// Initialize the contents of the buffers.
//
strcpy ( track1, "NO DATA READ" );
strcpy ( track2, "NO DATA READ" );
strcpy ( track3, "NO DATA READ" );
while ( 1 )
{
//
// If the ESC key is pressed then return.
//
if ( kbhit () )
{
if ( getch () == 27 )
{
padOff ();
return;
}
}
//
5 - 15