printf("\nScanning...\n"); | // Perform scan |
iInput = getch(); |
|
if (iInput == 0x00) |
|
{ |
|
iInput = getch(); |
|
if (iInput == 0x85) |
|
{ |
|
pScan = scnGets(cBuffer); |
|
if (pScan == NULL) |
|
printf("Scanning error\n"); |
|
else |
|
{ |
|
spkBeep(1, 1000);
printf("Scanned data:\n%s\nPress Enter...\n", &cBuffer);
_getch();
// Send data out port
uStatus = _bios_serialcom(_COM_SEND, 0, 0); printf("Comm port write\n");
printf("return status: %d\nPress Enter...", uStatus); _getch();
} |
|
} |
|
} |
|
} | // Disable scanner |
scnCloseScanner(); |
}