|
|
|
@ -188,6 +188,9 @@ struct sensordata
|
|
|
|
|
uint16_t value_colortemp, value_tcs_lux, value_tcs_r,value_tcs_g,value_tcs_b,value_tcs_c;
|
|
|
|
|
unsigned long lastread_tcs34725=0;
|
|
|
|
|
#define TCS34725_MINLUXFORCT 30 //send only colortemperature values if lux is at least this high
|
|
|
|
|
#ifndef TCS34725_LUXFACTOR
|
|
|
|
|
#define TCS34725_LUXFACTOR 1
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef SENSOR_ANEMOMETER
|
|
|
|
@ -892,7 +895,7 @@ void loop_TCS34725_lux()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//value_tcs_lux = tcs.calculateLux(value_tcs_r, value_tcs_g, value_tcs_b);
|
|
|
|
|
value_tcs_lux = tcs.lux;
|
|
|
|
|
value_tcs_lux = tcs.lux*TCS34725_LUXFACTOR;
|
|
|
|
|
|
|
|
|
|
if (abs((int)d.lastsentvalue-value_tcs_lux)>=d.minchange){ //int abs
|
|
|
|
|
_changed=true;
|
|
|
|
|