Delete log infos for inactive devices
This commit is contained in:
parent
1baa959d8f
commit
0ef51e6799
|
@ -250,7 +250,6 @@ void sensorTask(void *param){
|
||||||
unsigned char TempSource = 2; // Inside temperature
|
unsigned char TempSource = 2; // Inside temperature
|
||||||
unsigned char PressureSource = 0; // Atmospheric pressure
|
unsigned char PressureSource = 0; // Atmospheric pressure
|
||||||
unsigned char HumiditySource=0; // Inside humidity
|
unsigned char HumiditySource=0; // Inside humidity
|
||||||
LOG_DEBUG(GwLog::LOG,"Ready status BME280 %d", BME280_ready);
|
|
||||||
if(envsensor == "BME280" && BME280_ready == true){
|
if(envsensor == "BME280" && BME280_ready == true){
|
||||||
sensors.airTemperature = bme280.readTemperature();
|
sensors.airTemperature = bme280.readTemperature();
|
||||||
sensors.airPressure = bme280.readPressure()/100;
|
sensors.airPressure = bme280.readPressure()/100;
|
||||||
|
@ -313,7 +312,6 @@ void sensorTask(void *param){
|
||||||
// Send rotation angle all 1000ms
|
// Send rotation angle all 1000ms
|
||||||
if(millis() > starttime7 + 500){
|
if(millis() > starttime7 + 500){
|
||||||
starttime7 = millis();
|
starttime7 = millis();
|
||||||
LOG_DEBUG(GwLog::LOG,"Rotation sensor");
|
|
||||||
double rotationAngle=0;
|
double rotationAngle=0;
|
||||||
if(String(rotsensor) == "AS5600" && AS5600_ready == true && as5600.detectMagnet() == 1){
|
if(String(rotsensor) == "AS5600" && AS5600_ready == true && as5600.detectMagnet() == 1){
|
||||||
rotationAngle = as5600.getRawAngle() * 0.087; // 0...4095 segments = 0.087 degree
|
rotationAngle = as5600.getRawAngle() * 0.087; // 0...4095 segments = 0.087 degree
|
||||||
|
|
|
@ -76,7 +76,7 @@ public:
|
||||||
|
|
||||||
// Logging voltage value
|
// Logging voltage value
|
||||||
if (value1 == NULL) return;
|
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
|
// Draw page
|
||||||
//***********************************************************
|
//***********************************************************
|
||||||
|
|
Loading…
Reference in New Issue