Browse Source

Added Themperature Read for Alt TZ (Mojo)

AGP
Evgeny Gagua 2 years ago
parent
commit
ba2838dd3d
  1. 2
      Projects/la_mojo/build
  2. 2
      lib/App/common/hardwareManager.cpp
  3. 2
      lib/App/common/hardwareResourceSerialProvider.cpp

2
Projects/la_mojo/build

@ -4,7 +4,7 @@
#make clean -e "CFG=Debug"
#make -e "CFG=Debug" -j$(nproc)
make clean -e "CFG=Debug86"
#make clean -e "CFG=Debug86"
make -e "CFG=Debug86" -j$(nproc)
#make clean -e "CFG=Release86"

2
lib/App/common/hardwareManager.cpp

@ -1463,7 +1463,7 @@ bool hardwareManager::updateSysInfo( DBC_SYS_LOAD_INFO *ptr ){
FILE *fd = fopen( tB, "r" );
readLine( fd, tB, 128 );
fclose(fd);
if ( strcasestr(tB,"cpu")!=NULL || strcasestr(tB,"x86_pkg")!=NULL) {
if ( strcasestr(tB,"cpu")!=NULL || strcasestr(tB,"x86_pkg")!=NULL || strcasestr(tB,"acpitz")!=NULL ) {
sprintf( tB, "/sys/class/thermal/thermal_zone%d/temp", i );
FILE *fd = fopen( tB, "r" );
readLine( fd, tB, 128 );

2
lib/App/common/hardwareResourceSerialProvider.cpp

@ -949,7 +949,7 @@ bool hardwareResourceSerialProvider::closePort(){
if( iActiveFDS == 0 ){
} else if( iActiveFDS == -1){
m_bThreadBStatus = TH_ENDED;
m_bThreadAStatus = TH_ENDED;
//m_bThreadAStatus = TH_ENDED;
LOG_ERROR("Failure during Select[r]!");
} else {
for ( int i =0; i <= m_nReaderSetMax && iActiveFDS > 0; i++ ){

Loading…
Cancel
Save