extern uint8_t reset_indicator;
extern uint8_t alarmflag;
-volatile uint8_t wdcounter;
+volatile uint8_t wdcounter=5;
typedef union {
if (testSW()) {
am2302_hum= humidityRH*10.0;
am2302_temp=temperatureC*25.6;
- am2302_temp=am2302_temp-45;
+ //am2302_temp=am2302_temp-45;
config_info[5]=8;
}else{
//am2302_hum=0.318*hhum +76.0;
am2302_hum=0.31*hhum +80;
am2302_temp=temperatureC*25.6;
- am2302_temp=am2302_temp-45;
+ //am2302_temp=am2302_temp-45;
config_info[5]=7;
}
//PORTB&=~(1<<PINB1);