Skip to content

Commit afa5f5c

Browse files
committed
F7_HAL/usb: Fix attr access of cfg now that it's a pointer.
This bug was introduced in a136cb4 Signed-off-by: Damien George <[email protected]>
1 parent 201cf8f commit afa5f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, const USB_OTG_CfgTyp
129129
}
130130
#ifdef USB_HS_PHYC
131131

132-
else if (cfg.phy_itface == USB_OTG_HS_EMBEDDED_PHY)
132+
else if (cfg->phy_itface == USB_OTG_HS_EMBEDDED_PHY)
133133
{
134134
USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN);
135135

0 commit comments

Comments
 (0)