Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc423b21

Browse files
authored
fix(hwcdc): fixes problem with log message
1 parent3190bd5 commitc423b21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎cores/esp32/HWCDC.cpp‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,17 +321,18 @@ void HWCDC::begin(unsigned long baud) {
321321
// delay(10); // USB Host has to enumerate it again
322322

323323
// Peripheral Manager setting for USB D+ D- pins
324-
// Peripheral Manager setting for USB D+ D- pins
324+
uint8_t pin = USB_INT_PHY0_DM_GPIO_NUM;
325325
if (perimanGetBusDeinit(ESP32_BUS_TYPE_USB_DM) ==NULL) {
326326
perimanSetBusDeinit(ESP32_BUS_TYPE_USB_DM, HWCDC::deinit);
327327
}
328-
if (!perimanSetPinBus(USB_INT_PHY0_DM_GPIO_NUM, ESP32_BUS_TYPE_USB_DM, (void *)this, -1, -1)) {
328+
if (!perimanSetPinBus(pin, ESP32_BUS_TYPE_USB_DM, (void *)this, -1, -1)) {
329329
goto err;
330330
}
331+
pin = USB_INT_PHY0_DP_GPIO_NUM;
331332
if (perimanGetBusDeinit(ESP32_BUS_TYPE_USB_DP) ==NULL) {
332333
perimanSetBusDeinit(ESP32_BUS_TYPE_USB_DP, HWCDC::deinit);
333334
}
334-
if (!perimanSetPinBus(USB_INT_PHY0_DP_GPIO_NUM, ESP32_BUS_TYPE_USB_DP, (void *)this, -1, -1)) {
335+
if (!perimanSetPinBus(pin, ESP32_BUS_TYPE_USB_DP, (void *)this, -1, -1)) {
335336
goto err;
336337
}
337338
// Configure PHY

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp