mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-23 03:13:01 +03:00
fix(itwt): fix flow id 0 cannot suspend in itwt example
This commit is contained in:
@@ -144,7 +144,7 @@ static int wifi_cmd_itwt(int argc, char **argv)
|
||||
bool all_twt = itwt_args.all_twt->count ? (itwt_args.all_twt->ival[0] ? true : false) : false;
|
||||
flow_id = (all_twt == true) ? FLOW_ID_ALL : flow_id;
|
||||
int suspend_time_ms = itwt_args.suspend_time_ms->count ? itwt_args.suspend_time_ms->ival[0] : 0;
|
||||
if (flow_id > 0) {
|
||||
if (flow_id >= 0) {
|
||||
err = esp_wifi_sta_itwt_suspend(flow_id, suspend_time_ms);
|
||||
ESP_LOGI(TAG, "(itwt)suspend, flow_id:%d, all_twt:%d, suspend:%d ms, err:0x%x", flow_id, all_twt, suspend_time_ms, err);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user