|
|
@@ -977,9 +977,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
|
|
|
if((*it).type == 3)
|
|
|
{
|
|
|
//串口,同步写数据
|
|
|
- //LOG_INFO("before writefile handle:" << hPort);
|
|
|
+ LOG_INFO("before com writefile handle:" << hPort);
|
|
|
WriteFile(hPort, buf, len, &dwWrite, NULL);
|
|
|
- //LOG_INFO("after writefile handle:" << hPort);
|
|
|
+ LOG_INFO("after com writefile handle:" << hPort);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -996,9 +996,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
|
|
|
{
|
|
|
if(GetLastError() == ERROR_IO_PENDING)
|
|
|
{
|
|
|
- //LOG_INFO("Request queued, waiting... handle:" << hPort);
|
|
|
+ LOG_INFO("Request queued, waiting... handle:" << hPort);
|
|
|
WaitForSingleObject(hPort, 5000);
|
|
|
- //LOG_INFO("Request completed, handle:" << hPort);
|
|
|
+ LOG_INFO("Request completed, handle:" << hPort);
|
|
|
DWORD numread;
|
|
|
rc = GetOverlappedResult(
|
|
|
hPort,
|