소스 검색

日志修改

zhangyang 6 년 전
부모
커밋
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)
             {
                 //串口,同步写数据
-                //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,