diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index ad181baf..ed9ffc16 100755 --- a/Projects/la_mojo/build +++ b/Projects/la_mojo/build @@ -1,8 +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=Release86" #make -e "CFG=Release86" -j4 diff --git a/lib/App/common/SQLite_dataBinder.cpp b/lib/App/common/SQLite_dataBinder.cpp index 200be95e..9c39dda5 100644 --- a/lib/App/common/SQLite_dataBinder.cpp +++ b/lib/App/common/SQLite_dataBinder.cpp @@ -3514,6 +3514,22 @@ bool sqliteDBC::updateIPCam( uint32_t CamID, CSTR Addr ){ return false; }; +bool sqliteDBC::updateCamRange( uint32_t camID, float range ){ + if( m_bStoIsConnected ) { + char tQBuf[MAX_PATH_LEN]; + sprintf(tQBuf,"UPDATE `cameras` SET `max_range`=%.3f WHERE `id`=%d", + range, + camID + ); +#ifdef DEBUG_EXTRA + LOG(tQBuf); +#endif + m_pDataStorage->SilentQuery( tQBuf ); + return true; + }; + return false; +}; + bool sqliteDBC::updateCamOnlineStatus( uint32_t camID, bool online ){ if( m_bStoIsConnected ) { char tQBuf[MAX_PATH_LEN]; diff --git a/lib/App/common/SQLite_dataBinder.h b/lib/App/common/SQLite_dataBinder.h index e029c2ff..c6811d36 100644 --- a/lib/App/common/SQLite_dataBinder.h +++ b/lib/App/common/SQLite_dataBinder.h @@ -167,6 +167,7 @@ class sqliteDBC: public dataBinder { virtual bool setRessourceActive( uint32_t RessourceID, bool Status = true ); virtual bool setStreamValid( uint32_t streamID, bool status = true ); virtual void unregisterServer( void ); + virtual bool updateCamRange( uint32_t camID, float range ); virtual bool updateCamOnlineStatus( uint32_t camID, bool online ); virtual bool updateIPCam( uint32_t CamID, CSTR Addr ); virtual bool updateIPCam( CSTR uuid, CSTR Addr );