Skip to content

Commit

Permalink
i2c: Remove unnecessary static initialiser for i2c peripheral.
Browse files Browse the repository at this point in the history
Avoids build error on older versions of GCC:
"initializer element is not constant"
  • Loading branch information
keirf committed Jan 16, 2023
1 parent 9c73940 commit 8b203cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/lcd_stm32f105.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct packed i2c_osd_info {
};

/* STM32 I2C peripheral. */
static volatile struct i2c *i2c = i2c2;
static volatile struct i2c *i2c;

const static struct i2c_cfg {
uint8_t en;
Expand Down

0 comments on commit 8b203cd

Please sign in to comment.