|
@@ -3011,82 +3011,7 @@ void set_status_heights(void)
|
|
|
// arr_heights[0],arr_heights[1],arr_heights[2],
|
|
|
// arr_heights[3],arr_heights[4],arr_heights[5]);
|
|
|
}
|
|
|
-// void periodic_timer_callback(void* arg)
|
|
|
-// {
|
|
|
-// // if(++Machine_info.sec == 60)
|
|
|
-// // {
|
|
|
-// // last_button_info.time_min+=1;
|
|
|
-// // set_status_heights();
|
|
|
-// // printf("time min ++\r\n");
|
|
|
-// // printf("YEAR = %d,MONTH =%d,DAY=%d,HOUR=%d,MIN=%d,SEC =%d\r\n",
|
|
|
-// // Machine_info.year,
|
|
|
-// // Machine_info.month,
|
|
|
-// // Machine_info.day,
|
|
|
-// // Machine_info.hour,
|
|
|
-// // Machine_info.min,
|
|
|
-// // Machine_info.sec);
|
|
|
-
|
|
|
-// // Machine_info.sec=0;
|
|
|
-// // if(++Machine_info.min == 60)
|
|
|
-// // {
|
|
|
-// // Machine_info.min=0;
|
|
|
-// // if(++Machine_info.hour == 24)
|
|
|
-// // {
|
|
|
-// // Machine_info.hour=0;
|
|
|
-// // Machine_info.day++;
|
|
|
-
|
|
|
-// // if(IS_FEB_MONTH && IS_LEAP_YEAR && IS_SMALL_MONTH && IS_BIG_MONTH)
|
|
|
-// // {
|
|
|
-// // Machine_info.day=0;
|
|
|
-
|
|
|
-// // if(++Machine_info.month == 13)
|
|
|
-// // {
|
|
|
-// // Machine_info.month=1;
|
|
|
-// // Machine_info.year++;
|
|
|
-// // }
|
|
|
-// // }
|
|
|
-// // }
|
|
|
-// // }
|
|
|
-// // }
|
|
|
-// }
|
|
|
-
|
|
|
-// void lora_timer_callback(void *arg)
|
|
|
-// {
|
|
|
-// ESP_LOGI(LOG_TAG, " lora_timer_callback");
|
|
|
|
|
|
-// if (xQueueSend(yc_data_queue, &yc_data, 0) != true)
|
|
|
-// {
|
|
|
-// ESP_LOGE(LOG_TAG, "yc_data_queue send is fail");
|
|
|
-// }
|
|
|
-// yc_data.len = 0;
|
|
|
-// yc_data.index = 0;
|
|
|
-// }
|
|
|
-// void timer_init(void)
|
|
|
-// {
|
|
|
-// // const esp_timer_create_args_t periodic_timer_args = {
|
|
|
-// // .callback = &periodic_timer_callback,
|
|
|
-// // /* name is optional, but may help identify the timer when debugging */
|
|
|
-// // .name = "periodic"
|
|
|
-// // };
|
|
|
-
|
|
|
-// // ESP_ERROR_CHECK(esp_timer_create(&periodic_timer_args, &periodic_timer));
|
|
|
-// // /* The timer has been created but is not running yet */
|
|
|
-
|
|
|
-// // ESP_ERROR_CHECK(esp_timer_start_periodic(periodic_timer, 1*1000*1000));
|
|
|
-
|
|
|
-// // lora timer
|
|
|
-// const esp_timer_create_args_t lora_timer_args = {
|
|
|
-// .callback = &lora_timer_callback,
|
|
|
-// /* argument specified here will be passed to timer callback function */
|
|
|
-// .name = "one-shot"};
|
|
|
-// ESP_ERROR_CHECK(esp_timer_create(&lora_timer_args, &lora_timer));
|
|
|
-// }
|
|
|
-// void yc_timer_restart(void)
|
|
|
-// {
|
|
|
-// ESP_LOGI(LOG_TAG,"timer restart");
|
|
|
-// ESP_ERROR_CHECK(esp_timer_stop(periodic_timer));
|
|
|
-// ESP_ERROR_CHECK(esp_timer_start_periodic(periodic_timer, 1*1000*1000));
|
|
|
-// }
|
|
|
|
|
|
void lora_timer_start(void)
|
|
|
{
|