From 4d0119708a917ac0de291472bdd4deccaaa7e727 Mon Sep 17 00:00:00 2001 From: Evgeny Gagua Date: Mon, 13 Nov 2023 23:24:17 -0800 Subject: [PATCH] tt22 --- Projects/la_mojo/build | 8 ++++---- lib/App/common/deviceNode2D.cpp | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index 0d3905e9..59699e61 100755 --- a/Projects/la_mojo/build +++ b/Projects/la_mojo/build @@ -1,11 +1,11 @@ #! /bin/sh -make clean -e "CFG=Debug" -make -e "CFG=Debug" -j6 +#make clean -e "CFG=Debug" +#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 eef49857..536d5e43 100644 --- a/lib/App/common/deviceNode2D.cpp +++ b/lib/App/common/deviceNode2D.cpp @@ -1362,16 +1362,18 @@ void device2DSensor::save_detection(){ break; }; case LRF_WS_STAGE_5:{ - LOG("Send Slave Profile!"); - //ANODE_WM_2D_SET_SLAVE_PARAM - PLGS_2D_PARAMETERS tData = m_pDBC->getLRFDetectionProfile( m_sNodeData.aux_id, m_nActiveDetectionProfile, false ); - if ( tData ) { - m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER; - if (!setParameters( tData, false, m_nActiveDetectionProfile)) { - LOG_ERROR("Fall Back to Disconnected!"); - setWM( LRF_WM_CONNECTION ); - } else transactionWaitResult(); - free( tData ); + if( m_sNodeData.type == ARGUS_ALS_SENSOR || m_sNodeData.type == ARGUS_LFS_SENSOR ) { + LOG("Send Slave Profile!"); + //ANODE_WM_2D_SET_SLAVE_PARAM + PLGS_2D_PARAMETERS tData = m_pDBC->getLRFDetectionProfile( m_sNodeData.aux_id, m_nActiveDetectionProfile, false ); + if ( tData ) { + m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER; + if (!setParameters( tData, false, m_nActiveDetectionProfile)) { + LOG_ERROR("Fall Back to Disconnected!"); + setWM( LRF_WM_CONNECTION ); + } else transactionWaitResult(); + free( tData ); + } else transactionSetResult( TRANSACTION_RESULT_OK ); } else transactionSetResult( TRANSACTION_RESULT_OK ); break; };