Skip to content

Commit

Permalink
Merge pull request #293 from peter-marcisovsky/fix/usb_host_fix_enum_…
Browse files Browse the repository at this point in the history
…filter_build

fix(usb/host): Fix build C++ build for newly added enum filter feature (IEC-80)
  • Loading branch information
tore-espressif authored Jan 10, 2024
2 parents a5a8f17 + eef479a commit 6906d9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions usb/esp_modem_usb_dte/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
- Provide default configurations for tested modems
- Fix USB receive path bug, where received data could be overwritten by new data
- Initial support for modems with two AT ports

## Unreleased

- Fix C++ build error for `usb_host_config_t` backward compatibility
8 changes: 4 additions & 4 deletions usb/esp_modem_usb_dte/esp_modem_usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class UsbTerminal : public Terminal, private CdcAcmDevice {

// Install USB Host driver (if not already installed)
if (usb_config->install_usb_host && !usb_host_lib_task) {
const usb_host_config_t host_config = {
.skip_phy_setup = false,
.intr_flags = ESP_INTR_FLAG_LEVEL1,
};
usb_host_config_t host_config = {};
host_config.skip_phy_setup = false;
host_config.intr_flags = ESP_INTR_FLAG_LEVEL1;

ESP_MODEM_THROW_IF_ERROR(usb_host_install(&host_config), "USB Host install failed");
ESP_LOGD(TAG, "USB Host installed");
ESP_MODEM_THROW_IF_FALSE(
Expand Down

0 comments on commit 6906d9c

Please sign in to comment.