Hand Held Products PadCom TT1500 User Manual page 103

Point-of-sale terminal control library
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents