refine logic of average and env temp
This commit is contained in:
parent
22aed14aa1
commit
b3caa5db85
|
@ -210,7 +210,7 @@ static void sortFocusAreas(void)
|
||||||
{
|
{
|
||||||
temp1 = (float)tempValues[(x) + (y*COL)];
|
temp1 = (float)tempValues[(x) + (y*COL)];
|
||||||
|
|
||||||
if ((temp1 + (float)(waterTempThreshold / 10.0)) < (float)env_temperature ) // was max(averageTemp, env_temperature))
|
if ((temp1 + (float)(waterTempThreshold / 10.0)) < (float)(min(averageTemp, env_temperature))) // was max(averageTemp, env_temperature))
|
||||||
{
|
{
|
||||||
if (blackOutTag == 0) {
|
if (blackOutTag == 0) {
|
||||||
zoneMask[y*COL+x] ++;
|
zoneMask[y*COL+x] ++;
|
||||||
|
|
Loading…
Reference in New Issue