Skip to content

Commit 180c651

Browse files
committed
fix(esp32s3): Fix secondary data dump, typos
1 parent e04698e commit 180c651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/usb/iot_usbh_modem/src/esp_modem_usb_dte.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ static void esp_handle_usb2_data(esp_modem_dte_internal_t *esp_dte)
163163
}
164164
length = MIN(esp_dte->data_buffer_size, length);
165165
uint8_t *temp_buffer = (uint8_t *)calloc(1, length);
166-
usbh_cdc_read_bytes(esp_dte->cdc_hdl2, esp_dte->data_buffer, &length, pdMS_TO_TICKS(100));
166+
usbh_cdc_read_bytes(esp_dte->cdc_hdl2, temp_buffer, &length, pdMS_TO_TICKS(100));
167167
/* pass the input data to configured callback */
168168
if (length) {
169-
ESP_LOGI(TAG, "Intf2 not handle date, just dump:");
170-
ESP_LOG_BUFFER_HEXDUMP("esp-modem-dte: inf2", temp_buffer, length, ESP_LOG_INFO);
169+
ESP_LOGI(TAG, "Unsolicited data on secondary itf, dumping:");
170+
ESP_LOG_BUFFER_HEXDUMP("esp-modem-dte: intf2", temp_buffer, length, ESP_LOG_INFO);
171171
}
172172
free(temp_buffer);
173173
}

0 commit comments

Comments
 (0)