[an error occurred while processing this directive]
|
void SendCmd(char command, char data)
{
static char _buf[2];
unsigned long _nbytes;_buf[0] = command;
_buf[1] = data;
WriteFile(PortHandle, &_buf, 2, &_nbytes, NULL);
FlushFileBuffers(PortHandle);
}