diff options
author | Nikolaus Wittenstein <nikolaus.wittenstein@gmail.com> | 2017-02-03 21:00:10 -0500 |
---|---|---|
committer | Nikolaus Wittenstein <nikolaus.wittenstein@gmail.com> | 2017-02-03 21:00:13 -0500 |
commit | e667e9f6da17c5551379b168cc97647b44972d10 (patch) | |
tree | 2cf9b551a81115fce667ce319de748988171223d | |
parent | f0633f2540be3ba86797522a2075a9f5ba2ad5c6 (diff) |
Fix compile warnings in light_ws2812.c
Fixes the warning "function declaration isn't a prototype" by explicitly
making the parameter list void.
-rwxr-xr-x | quantum/light_ws2812.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/light_ws2812.c b/quantum/light_ws2812.c index a883b13884..55bdd9cd81 100755 --- a/quantum/light_ws2812.c +++ b/quantum/light_ws2812.c @@ -70,7 +70,7 @@ void I2C_WriteBit(unsigned char c) // Inits bitbanging port, must be called before using the functions below // -void I2C_Init() +void I2C_Init(void) { I2C_PORT &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); @@ -82,7 +82,7 @@ void I2C_Init() // Send a START Condition // -void I2C_Start() +void I2C_Start(void) { // set both to high at the same time I2C_DDR &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); @@ -97,7 +97,7 @@ void I2C_Start() // Send a STOP Condition // -void I2C_Stop() +void I2C_Stop(void) { I2C_CLOCK_HI(); _delay_us(I2C_DELAY); |