We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这是我的按键回调 static void button_single_click_cb(void *arg){ uint32_t gpio_num = (uint32_t) arg; if(key==false) { xEventGroupSetBits(lora_work_handle,lora_work_BIT_0); // xSemaphoreGive(semp_handle);
ESP_LOGI(TAG, "BTN%ld:REC START!!!!!!!\n", gpio_num); key = true; // int datatoque = 1; // // xTaskCreatePinnedToCore(LORA_TX_WORK_Task,"LORA_TX_WORK_Task",1024*10,NULL,4,&TX_WORK_handle,1); // xQueueSend(quq_handle,&datatoque,portMAX_DELAY); }
} 我想实现按下按键,执行任务。但是目前我使用设置事件组标志位来处理,发现它是会触发事件组断言。请问,有没有好的方法可以实现回调触发任务的执行吗?
The text was updated successfully, but these errors were encountered:
看起来这段代码的事件组设置没用问题,请确定事件组在使用前已经被初始化了,如果可以,请贴上你的报错 log
Sorry, something went wrong.
No branches or pull requests
Answers checklist.
General issue report
这是我的按键回调
static void button_single_click_cb(void *arg){
uint32_t gpio_num = (uint32_t) arg;
if(key==false)
{
xEventGroupSetBits(lora_work_handle,lora_work_BIT_0);
// xSemaphoreGive(semp_handle);
}
我想实现按下按键,执行任务。但是目前我使用设置事件组标志位来处理,发现它是会触发事件组断言。请问,有没有好的方法可以实现回调触发任务的执行吗?
The text was updated successfully, but these errors were encountered: