if (testSW()) {\r
am2302_hum= humidityRH*10.0;\r
am2302_temp=temperatureC*25.6;\r
- am2302_temp=am2302_temp-20;\r
+ //am2302_temp=am2302_temp-20;\r
config_info2[5]=8;\r
\r
}else{\r
//am2302_hum=0.318*hhum +76.0;\r
am2302_hum=0.31*hhum +80;\r
am2302_temp=temperatureC*25.6;\r
- am2302_temp=am2302_temp-20;\r
+ //am2302_temp=am2302_temp-20;\r
config_info2[5]=7;\r
}\r
wdcounter=0;\r
}\r
\r
- if (gcontrol==1) {\r
+ if ((gcontrol&1)==1) {\r
\r
bmp280ConvertInt(&t,&P,1);\r
P=P-70000;\r