diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index 4f4d4e8..f36b323 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -19,7 +19,7 @@ void setError(uint8_t error) { GenericHidOutBuffer[0] = error; } -void setGenericError() +void setGenericError(void) { setError(PROTOCOL_RESPONSE_GENERIC_ERROR); } @@ -32,7 +32,7 @@ void SetResponseByte(uint8_t response) // Per command protocol command handlers -void getSystemProperty() { +void getSystemProperty(void) { uint8_t propertyId = GenericHidInBuffer[1]; switch (propertyId) { @@ -54,21 +54,21 @@ void getSystemProperty() { } } -void reenumerate() { +void reenumerate(void) { Wormhole.magicNumber = WORMHOLE_MAGIC_NUMBER; Wormhole.enumerationMode = GenericHidInBuffer[1]; SCB->AIRCR = 0x5FA<> 8; } -void setLedPwm() +void setLedPwm(void) { uint8_t brightnessPercent = GenericHidInBuffer[1]; LedPwm_SetBrightness(brightnessPercent); @@ -145,7 +145,7 @@ void launchEepromTransfer(void) // The main protocol handler function -void usbProtocolHandler() +void usbProtocolHandler(void) { bzero(GenericHidOutBuffer, USB_GENERIC_HID_OUT_BUFFER_LENGTH); uint8_t command = GenericHidInBuffer[0];