Evgeny Gagua 3 years ago
parent
commit
69679b35cc
  1. 6
      Projects/la_mojo/build
  2. 8
      lib/App/common/deviceNode2D.cpp

6
Projects/la_mojo/build

@ -2,10 +2,10 @@
#make clean -e "CFG=Debug"
#make -e "CFG=Debug" -j6
make -e "CFG=Debug" -j6
make clean -e "CFG=Debug86"
make -e "CFG=Debug86" -j4
#make clean -e "CFG=Debug86"
#make -e "CFG=Debug86" -j4
#make clean -e "CFG=Release86"
#make -e "CFG=Release86" -j4

8
lib/App/common/deviceNode2D.cpp

@ -2878,16 +2878,18 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){
for (int i = 0; i < tT.nCount; i++) {
tT.pTable[i] = Package->m_pData[idx++];
tT.pTable[i] = ( tT.pTable[i] << 8 ) | Package->m_pData[idx++];
idx++;
};
m_pDBC->cleanLRFWidthTable( m_sLRF_DATA.id );
m_pDBC->addLRFWidthTable( m_sLRF_DATA.id, &tT );
};
#ifdef DEBUG
char tB[128];
for ( int i = 0; i< WIDTH_TABLE_SIZE; i++ ) {
sprintf( tB,"WT[%d]=%d%%", tT.pTable[i] );
for ( int i = 0; i< tT.nCount; i++ ) {
sprintf( tB,"WT[%d]=%d%%", i, tT.pTable[i] );
LOG( tB );
};
#endif
transactionSetResult( TRANSACTION_RESULT_OK );
break;
};
case CMD_SET_WIDTH_TABLE:{

Loading…
Cancel
Save