diff --git a/board/TencentOS_tiny_EVB_G0/KEIL/mqtt_iot_explorer_tc_pm25/demo/mqtt_iot_explorer_tc_pm25_oled.c b/board/TencentOS_tiny_EVB_G0/KEIL/mqtt_iot_explorer_tc_pm25/demo/mqtt_iot_explorer_tc_pm25_oled.c index 3933d1c8..bfa9b349 100644 --- a/board/TencentOS_tiny_EVB_G0/KEIL/mqtt_iot_explorer_tc_pm25/demo/mqtt_iot_explorer_tc_pm25_oled.c +++ b/board/TencentOS_tiny_EVB_G0/KEIL/mqtt_iot_explorer_tc_pm25/demo/mqtt_iot_explorer_tc_pm25_oled.c @@ -195,7 +195,11 @@ void mqtt_demo_task(void) sprintf(str, "# report ok"); OLED_ShowString(0,2,(uint8_t*)str,16); } - + + if (report_error_count >= 6) { + HAL_NVIC_SystemReset(); + } + tos_sleep_ms(5000); }