Format code according to conventions (#16322)

This commit is contained in:
QMK Bot authored and GitHub committed 2022-02-12 18:29:31 +00:00
1 parent afcdd7079c
commit 63646e8906
345 files changed
+4916 -3229

No files matched your search

+5 -3
View File
@@ -22,13 +22,15 @@ void usb_disconnect(void) {
USB_DeviceState = DEVICE_STATE_Unattached;
}
bool usb_connected_state(void) { return USB_Device_IsAddressSet(); }
bool usb_connected_state(void) {
return USB_Device_IsAddressSet();
}
#if defined(OTGPADE)
bool usb_vbus_state(void) {
USB_OTGPAD_On(); // enables VBUS pad
USB_OTGPAD_On(); // enables VBUS pad
wait_us(5);
return USB_VBUS_GetStatus(); // checks state of VBUS
return USB_VBUS_GetStatus(); // checks state of VBUS
}
#endif