From 69679b35cc9b123d5b6e1e8518fcc8e13ca835dc Mon Sep 17 00:00:00 2001 From: Evgeny Gagua Date: Sun, 3 Dec 2023 18:37:52 +0000 Subject: [PATCH] ZUZU --- Projects/la_mojo/build | 6 +++--- lib/App/common/deviceNode2D.cpp | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index 59699e61..70621108 100755 --- a/Projects/la_mojo/build +++ b/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 diff --git a/lib/App/common/deviceNode2D.cpp b/lib/App/common/deviceNode2D.cpp index 2034e265..f545e402 100644 --- a/lib/App/common/deviceNode2D.cpp +++ b/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:{