5 - 28
//
// *******************************************************
// * Step 3: Check if any of the tracks were read.
*
// *******************************************************
//
dataReadFromTrack1 = padGetMagTrack ( 1, track1, TRACK1_MAX );
dataReadFromTrack2 = padGetMagTrack ( 2, track2, TRACK2_MAX );
dataReadFromTrack3 = padGetMagTrack ( 3, track3, TRACK3_MAX );
if
(
dataReadFromTrack1 ||
dataReadFromTrack2 ||
dataReadFromTrack3
)
{
//
// At this point we know that at least 1 track was read
// successfully (the last track read, i.e., track 3).
//
// It is possible one or more of the other tracks were
// checked before any data was retrieved from the card.
//
// As soon as one track contains data all of the other
// tracks will as well.
//
// To make sure we get all of the data from all of the tracks
// we will read all of them again.
//
//
// *******************************************************
// * Step 4: Read all of the tracks
*
// *******************************************************
// Note: step 4 is not needed if only one track is being read
Содержание PadCom TT1500
Страница 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Страница 88: ...4 2 ...
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...