Skip to content

Commit 8b203cd

Browse files
committed
i2c: Remove unnecessary static initialiser for i2c peripheral.
Avoids build error on older versions of GCC: "initializer element is not constant"
1 parent 9c73940 commit 8b203cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/display/lcd_stm32f105.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct packed i2c_osd_info {
4343
};
4444

4545
/* STM32 I2C peripheral. */
46-
static volatile struct i2c *i2c = i2c2;
46+
static volatile struct i2c *i2c;
4747

4848
const static struct i2c_cfg {
4949
uint8_t en;

0 commit comments

Comments
 (0)