unsupported USBHAL: fix coding style

pull/10653/head
Martin Kojtal 2019-06-03 08:44:41 +01:00 committed by GitHub
parent f5527eaf0e
commit 5d33fe1dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -122,16 +122,13 @@ static gpio_t gpio_powerpin;
void usb_vbus(uint8_t state)
{
if (gpio_powerpin.reg_set && gpio_powerpin.reg_clr)
{
if (gpio_powerpin.reg_set && gpio_powerpin.reg_clr) {
if (state == 0) {
gpio_write(&gpio_powerpin, USB_POWER_OFF);
} else {
gpio_write(&gpio_powerpin, USB_POWER_ON);
}
}
else
{
} else {
/* The board does not have GPIO pin to control usb supply */
}
wait(0.2);