Skip to content
New issue

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

fix(ci): Fixed failing CI because of idf-build-apps v2.5 #67

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions host/class/cdc/usb_host_cdc_acm/cdc_acm_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ static void cdc_acm_reset_in_transfer(cdc_dev_t *cdc_dev)
uint8_t **ptr = (uint8_t **)(&(transfer->data_buffer));
*ptr = cdc_dev->data.in_data_buffer_base;
transfer->num_bytes = transfer->data_buffer_size;
// This is a hotfix for IDF changes, where 'transfer->data_buffer_size' does not contain actual buffer length, but *allocated* buffer length, which can be larger
tore-espressif marked this conversation as resolved.
Show resolved Hide resolved
transfer->num_bytes -= transfer->data_buffer_size % cdc_dev->data.in_mps;
}

/**
Expand Down
5 changes: 4 additions & 1 deletion host/class/cdc/usb_host_cdc_acm/test_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0")
list(APPEND EXTRA_COMPONENT_DIRS ../../../../../device/esp_tinyusb)
endif()

project(test_app_usb_host_cdc)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)

project(test_app_usb_host_cdc)
Loading