瀏覽代碼

Fix compile warnings in light_ws2812.c

Fixes the warning "function declaration isn't a prototype" by explicitly
making the parameter list void.
Nikolaus Wittenstein 8 年之前
父節點
當前提交
e667e9f6da
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      quantum/light_ws2812.c

+ 3 - 3
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);