From 57136e279d3d1c7e024f2b049640dc6a2e17dd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sun, 23 Jul 2017 00:56:43 +0200 Subject: [PATCH] Be explicit about void function arguments. --- right/src/usb_protocol_handler.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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];