Skip to content

Commit

Permalink
Merge branch 'bugfix/usb_host_usbh_callback_misses_action_v5.1' into …
Browse files Browse the repository at this point in the history
…'release/v5.1'

fix(usb): Fix bug where usbh_process() misses an event (v5.1)

See merge request espressif/esp-idf!29365
  • Loading branch information
suda-morris committed Mar 4, 2024
2 parents cbfdec3 + ef69885 commit 975a86b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/usb/usbh.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ static bool _dev_set_actions(device_t *dev_obj, uint32_t action_flags)
dev_obj->dynamic.flags.in_pending_list = 1;
call_proc_req_cb = true;
} else {
// The device is already on the callback list, thus a processing request is already pending.
dev_obj->dynamic.action_flags |= action_flags;
call_proc_req_cb = false;
}
return call_proc_req_cb;
Expand Down

0 comments on commit 975a86b

Please sign in to comment.