 
   if (g_need_report) {
     print_status();
-//    report_status();
+    report_status();
     g_need_report = 0;
   }
 

  DDRB &= B11111110;

  pinMode(PIN_ON_OFF, OUTPUT);
  digitalWrite(PIN_ON_OFF, LOW);
  pinMode(PIN_MODE, OUTPUT);
  digitalWrite(PIN_MODE, LOW);
  pinMode(PIN_FAN, OUTPUT);
  digitalWrite(PIN_FAN, LOW);
  pinMode(PIN_ADD_TEMP, OUTPUT);
  digitalWrite(PIN_ADD_TEMP, LOW);
  pinMode(PIN_DEC_TEMP, OUTPUT);
  digitalWrite(PIN_DEC_TEMP, LOW);
}

void loop() {

#define PIN_ON_OFF 9
#define PIN_MODE 10
#define PIN_FAN 11
#define PIN_INC 12
#define PIN_DEC 13

#define MIN_ANALOG_V 96
#define MAX_ANALOG_V 928

#define MAX_STABLE_CNT 32 /* 去除波动，MAX_STABLE_CNT 次数据不变后才上报状态 */

#define SIM_BTN_DELAY 32

const char *g_devid = "temp_ctrl_0";

uint8_t g_header[HEADER_LEN];
uint8_t g_buf[BUF_LEN];
