zhangyang 6 лет назад
Родитель
Сommit
41dc79d0a5
1 измененных файлов с 4 добавлено и 4 удалено
  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)
             if((*it).type == 3)
             {
             {
                 //串口,同步写数据
                 //串口,同步写数据
-                //LOG_INFO("before writefile handle:" << hPort);
+                LOG_INFO("before com writefile handle:" << hPort);
                 WriteFile(hPort, buf, len, &dwWrite, NULL);
                 WriteFile(hPort, buf, len, &dwWrite, NULL);
-                //LOG_INFO("after writefile handle:" << hPort);
+                LOG_INFO("after com writefile handle:" << hPort);
             }
             }
             else
             else
             {
             {
@@ -996,9 +996,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
                 {
                 {
                     if(GetLastError() == ERROR_IO_PENDING)
                     if(GetLastError() == ERROR_IO_PENDING)
                     {
                     {
-                        //LOG_INFO("Request queued, waiting... handle:" << hPort);
+                        LOG_INFO("Request queued, waiting... handle:" << hPort);
                         WaitForSingleObject(hPort, 5000);
                         WaitForSingleObject(hPort, 5000);
-                        //LOG_INFO("Request completed, handle:" << hPort);
+                        LOG_INFO("Request completed, handle:" << hPort);
                         DWORD numread;
                         DWORD numread;
                         rc = GetOverlappedResult(
                         rc = GetOverlappedResult(
                                  hPort,
                                  hPort,