/[H7]/trunk/H7 Server/Serial.cpp
ViewVC logotype

Diff of /trunk/H7 Server/Serial.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 35 by hedin, Wed Jan 31 17:32:22 2007 UTC revision 36 by hedin, Thu Feb 1 09:21:43 2007 UTC
# Line 182  void CSerial::printByte(char* descriptio Line 182  void CSerial::printByte(char* descriptio
182          std::cout << description << " : " <<  (int) byte << "/" << std::setw(2) << std::setfill('0') << std::hex << (int) byte << std::endl;          std::cout << description << " : " <<  (int) byte << "/" << std::setw(2) << std::setfill('0') << std::hex << (int) byte << std::endl;
183          std::cout << std::dec;          std::cout << std::dec;
184  }  }
   
 /*  
 void CSerial::writeBytes(UCVector out)  
 {  
         unsigned long bytesWritten;  
         unsigned int size = out.size();  
         unsigned char *buf = new unsigned char[size];  
   
         for (int i=0; i<size; i++)  
                 buf[i] = out[i];  
   
         WriteFile(mComport,buf,size,&bytesWritten,NULL);  
         if (bytesWritten != size)  
         {  
                 std::string error = writeLastError();  
                 CloseHandle(mComport);  
                 throw std::exception(error.c_str());  
         }  
         delete[] buf;  
 }  
 */  
   
   
 /*  
 UCVector CSerial::readBytes(int maxcount)  
 {  
         UCVector buf;  
   
   
   
         return buf;  
 }  
 */  

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.20