if (sStatus != 0)
printf("Format Write error - %d", sStatus); else
{// Start batch sStatus = pclWrite("{B,1,N,1E,0,0,1,1,0,1}", 24);
if (sStatus != 0)
printf("Batch Write error - %d", sStatus); else
{
while ((sStatus = pclStatus()) == 1) // Wait until done
;
sStatus = pclGetOnDemandSensor(); // Check sensor
switch (sStatus) | // Display result |
{ |
|
case 0: printf("\nNot blocked"); break;
case 1: printf("\nBlocked"); break;
default:
pclClearError();
} |
|
} |
|
} |
|
} |
|
} | // Close Print subsystem |
pclClose(); |
}