Changeset 121 in pacpusframework for branches/2.0-beta1/src
- Timestamp:
- Jul 19, 2013, 12:42:35 PM (11 years ago)
- Location:
- branches/2.0-beta1/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/CMakeLists.txt
r120 r121 65 65 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/inputOutputInterface.h 66 66 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusEvent.h 67 #${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpusStruct.h67 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpusStruct.h 68 68 69 69 ./ComponentBase.cpp … … 75 75 ./XmlConfigFile.cpp 76 76 ./inputOutputBase.cpp 77 #./pacpusStruct.cpp77 ./pacpusStruct.cpp 78 78 ) 79 79 -
branches/2.0-beta1/src/PacpusTools/src/PacpusSerialPort.cpp
r120 r121 42 42 sepChar = "\n"; 43 43 44 startChar = "$"; 45 stopChar = "\n"; 46 44 47 // Or threaded 45 48 connect(serialPort,SIGNAL(readyRead()),this,SLOT(readData())); … … 101 104 sepChar = param.getProperty("sepChar"); 102 105 106 if(param.hasProperty("startChar")) 107 startChar = param.getProperty("startChar"); 108 109 if(param.hasProperty("stopChar")) 110 stopChar = param.getProperty("stopChar"); 111 103 112 serialPort->setPortName(portName); 104 113 105 114 if(!serialPort->setBaudRate(baudRate,direction)) 106 LOG_ERROR( "n° "<< serialPort->error());115 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 107 116 if(!serialPort->setDataBits(dataBits)) 108 LOG_ERROR( "n° "<< serialPort->error());117 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 109 118 if(!serialPort->setParity(parity)) 110 LOG_ERROR( "n° "<< serialPort->error());119 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 111 120 if(!serialPort->setStopBits(stopBits)) 112 LOG_ERROR( "n° "<< serialPort->error());121 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 113 122 if(!serialPort->setFlowControl(flowControl)) 114 LOG_ERROR( "n° "<< serialPort->error());123 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 115 124 if(!serialPort->setDataErrorPolicy(errorPolicy)) 116 LOG_ERROR( "n° "<< serialPort->error());125 LOG_ERROR(getName() << "\t error n° "<< serialPort->error()); 117 126 118 127 // For futher developpements … … 160 169 { 161 170 setState(MONITOR_OK); 162 LOG_DEBUG( "Serial write performed")171 LOG_DEBUG(getName() << " Serial write performed") 163 172 } 164 173 else 165 174 { 166 175 setState(MONITOR_NOK); 167 LOG_WARN( "Serial write error")176 LOG_WARN(getName() << " Serial write error") 168 177 } 169 178 }
Note:
See TracChangeset
for help on using the changeset viewer.