We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5527ea commit 5d33fe1Copy full SHA for 5d33fe1
features/unsupported/USBHost/targets/TARGET_STM/USBHALHost_STM.h
@@ -122,16 +122,13 @@ static gpio_t gpio_powerpin;
122
123
void usb_vbus(uint8_t state)
124
{
125
- if (gpio_powerpin.reg_set && gpio_powerpin.reg_clr)
126
- {
+ if (gpio_powerpin.reg_set && gpio_powerpin.reg_clr) {
127
if (state == 0) {
128
gpio_write(&gpio_powerpin, USB_POWER_OFF);
129
} else {
130
gpio_write(&gpio_powerpin, USB_POWER_ON);
131
}
132
- }
133
- else
134
+ } else {
135
/* The board does not have GPIO pin to control usb supply */
136
137
wait(0.2);
0 commit comments