Browse Source

MER version before carbonization 1

AGP
Evgeny Gagua 3 years ago
parent
commit
bbe149620f
  1. 4
      Projects/la_mojo/build
  2. 33
      lib/App/common/deviceNode2D.cpp
  3. 5
      lib/data/sqlite/sqlite_class.cpp

4
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 -e "CFG=Debug86" -j4
#make clean -e "CFG=Release86"
#make -e "CFG=Release86" -j4

33
lib/App/common/deviceNode2D.cpp

@ -8,7 +8,7 @@
#define LGS_MAX_DETECTOR_RANGE 2047
#define DEBUG_EXTRA
//#define DEBUG_EXTRA
#undef LOG
#undef LOG_ERROR
@ -3234,36 +3234,7 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){
#endif
m_sShadowHelper.m_nCurrentPoint++;
m_sShadowHelper.m_bSequence = Package->m_pData[DATA_BEGIN_IDX+1];
if( m_sShadowHelper.m_nCurrentPoint < m_sShadow.pPolygones[m_sShadowHelper.m_nCurrentPolygon].wCount ) {
//LOG("Back To Read Nex Poly Point!");
transactionSetResult( TRANSACTION_RESULT_REPEAT );
//setStage( LRF_WS_STAGE_5 );
//setWM( ANODE_WM_2D_GET_SHADOW_POLY_POINT );
} else {
#ifdef DEBUG
LOG("Done Load Poly Points");
#endif
//m_sShadowHelper.m_nCurrentPolygon++;
//m_sShadowHelper.m_nCurrentPoint = 0;
transactionSetResult( TRANSACTION_RESULT_REPEAT );
/*
transactionSetResult( TRANSACTION_RESULT_OK );
if(m_sShadowHelper.m_nCurrentPolygon < m_sShadow.m_nPolygonCount ) {
//setStage( LRF_WS_STAGE_4 );
//setWM( ANODE_WM_2D_GET_SHADOW_POLY_INFO );
transactionSetResult( TRANSACTION_RESULT_OK );
} else {
saveShadowToDB();
#ifdef DEBUG_EXTRA
//rasterizeShadow();
//makeShadowPic("shadow.png");
#endif
setWM( LRF_WM_IDLE );
updateDataStatus( ARGUS_DS_READY );
};
*/
};
transactionSetResult( TRANSACTION_RESULT_REPEAT );
break;
};
case HZIT_EVT_GET_RAY:{

5
lib/data/sqlite/sqlite_class.cpp

@ -382,7 +382,7 @@ uint64_t SQLite_Connector::QueryID( CSTR QS ){
if( SQLITE_DONE != sqlite3_step( query )){
sqlite3_finalize( query );
m_mAccessMutex.unlock();
return false;
return RetVal;
};
RetVal = sqlite3_last_insert_rowid( m_pDBLink );
sqlite3_finalize( query );
@ -393,7 +393,8 @@ uint64_t SQLite_Connector::QueryID( CSTR QS ){
};
};
m_mAccessMutex.unlock();
if( RetVal == tVal ) RetVal = 0;
// Commented Due to Mask add polygone problem
//if( RetVal == tVal ) RetVal = 0;
};
return RetVal;
};

Loading…
Cancel
Save