zhangyang %!s(int64=6) %!d(string=hai) anos
pai
achega
41dc79d0a5
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      lewaimai_pos_windows/tool/CPosPrinter.cpp

+ 4 - 4
lewaimai_pos_windows/tool/CPosPrinter.cpp

@@ -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,