[CI] Format code according to conventions (#19265)

This commit is contained in:
QMK Bot 2022-12-08 09:10:52 -08:00 committed by GitHub
parent a23333eb58
commit 1786932d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,10 +76,10 @@ static void keyboard_idle_timer_cb(void *arg);
#endif #endif
report_keyboard_t keyboard_report_sent = {{0}}; report_keyboard_t keyboard_report_sent = {{0}};
report_mouse_t mouse_report_sent = {0}; report_mouse_t mouse_report_sent = {0};
union { union {
uint8_t report_id; uint8_t report_id;
report_keyboard_t keyboard; report_keyboard_t keyboard;
#ifdef EXTRAKEY_ENABLE #ifdef EXTRAKEY_ENABLE
report_extra_t extra; report_extra_t extra;
@ -126,7 +126,7 @@ static const USBDescriptor *usb_get_descriptor_cb(USBDriver *usbp, uint8_t dtype
uint16_t wValue = ((uint16_t)dtype << 8) | dindex; uint16_t wValue = ((uint16_t)dtype << 8) | dindex;
uint16_t wLength = ((uint16_t)usbp->setup[7] << 8) | usbp->setup[6]; uint16_t wLength = ((uint16_t)usbp->setup[7] << 8) | usbp->setup[6];
desc.ud_string = NULL; desc.ud_string = NULL;
desc.ud_size = get_usb_descriptor(wValue, wIndex, wLength, (const void **const)&desc.ud_string); desc.ud_size = get_usb_descriptor(wValue, wIndex, wLength, (const void **const) & desc.ud_string);
if (desc.ud_string == NULL) if (desc.ud_string == NULL)
return NULL; return NULL;
else else
@ -638,24 +638,24 @@ static bool usb_request_hook_cb(USBDriver *usbp) {
case MOUSE_INTERFACE: case MOUSE_INTERFACE:
usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL);
return TRUE; return TRUE;
break; break;
#endif #endif
#ifdef SHARED_EP_ENABLE #ifdef SHARED_EP_ENABLE
case SHARED_INTERFACE: case SHARED_INTERFACE:
# ifdef KEYBOARD_SHARED_EP # ifdef KEYBOARD_SHARED_EP
if (usbp->setup[2] == REPORT_ID_KEYBOARD) { if (usbp->setup[2] == REPORT_ID_KEYBOARD) {
usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, KEYBOARD_REPORT_SIZE, NULL); usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, KEYBOARD_REPORT_SIZE, NULL);
return TRUE; return TRUE;
break; break;
} }
# endif # endif
# ifdef MOUSE_SHARED_EP # ifdef MOUSE_SHARED_EP
if (usbp->setup[2] == REPORT_ID_MOUSE) { if (usbp->setup[2] == REPORT_ID_MOUSE) {
usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL);
return TRUE; return TRUE;
break; break;
} }
# endif # endif
#endif /* SHARED_EP_ENABLE */ #endif /* SHARED_EP_ENABLE */
default: default:
universal_report_blank.report_id = usbp->setup[2]; universal_report_blank.report_id = usbp->setup[2];