From 0ef51e6799c538f45af4b9869f55c36fd7e97ae1 Mon Sep 17 00:00:00 2001 From: norbert-walter Date: Sun, 20 Mar 2022 18:51:26 +0100 Subject: [PATCH] Delete log infos for inactive devices --- lib/obp60task/OBPSensorTask.cpp | 6 ++---- lib/obp60task/PageVoltage.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/obp60task/OBPSensorTask.cpp b/lib/obp60task/OBPSensorTask.cpp index a31bccf..664fcda 100644 --- a/lib/obp60task/OBPSensorTask.cpp +++ b/lib/obp60task/OBPSensorTask.cpp @@ -250,7 +250,6 @@ void sensorTask(void *param){ unsigned char TempSource = 2; // Inside temperature unsigned char PressureSource = 0; // Atmospheric pressure unsigned char HumiditySource=0; // Inside humidity - LOG_DEBUG(GwLog::LOG,"Ready status BME280 %d", BME280_ready); if(envsensor == "BME280" && BME280_ready == true){ sensors.airTemperature = bme280.readTemperature(); sensors.airPressure = bme280.readPressure()/100; @@ -313,7 +312,6 @@ void sensorTask(void *param){ // Send rotation angle all 1000ms if(millis() > starttime7 + 500){ starttime7 = millis(); - LOG_DEBUG(GwLog::LOG,"Rotation sensor"); double rotationAngle=0; if(String(rotsensor) == "AS5600" && AS5600_ready == true && as5600.detectMagnet() == 1){ rotationAngle = as5600.getRawAngle() * 0.087; // 0...4095 segments = 0.087 degree @@ -350,8 +348,8 @@ void sensorTask(void *param){ SetN2kTrimTab(N2kMsg, trim, trim); api->sendN2kMessage(N2kMsg); } - sensors.rotationAngle = DegToRad(rotationAngle); // Data take over to page - sensors.validRotAngle = true; // Valid true, magnet present + sensors.rotationAngle = DegToRad(rotationAngle); // Data take over to page + sensors.validRotAngle = true; // Valid true, magnet present } else{ sensors.rotationAngle = 0; // Center position 0° diff --git a/lib/obp60task/PageVoltage.cpp b/lib/obp60task/PageVoltage.cpp index 7f0b1a9..dd729aa 100644 --- a/lib/obp60task/PageVoltage.cpp +++ b/lib/obp60task/PageVoltage.cpp @@ -76,7 +76,7 @@ public: // Logging voltage value if (value1 == NULL) return; - LOG_DEBUG(GwLog::LOG,"Drawing at PageVoltage, p=%s, v=%f", name1, value1); + LOG_DEBUG(GwLog::LOG,"Drawing at PageVoltage, Type:%s %s:=%f", batType, name1, value1); // Draw page //***********************************************************