diff options
| author | Joel Challis <git@zvecr.com> | 2020-09-17 01:42:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-17 10:42:24 +1000 |
| commit | e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb (patch) | |
| tree | 7c574d7f5f0fa35fd6b200ea6c3ac48db553fe0f /drivers | |
| parent | 424eeb8af738697e05446c0949099416955df226 (diff) | |
| download | qmk_firmware-e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb.tar.gz qmk_firmware-e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb.zip | |
Fix ssd1306 compilation on avr-gcc 10 (#9267)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/avr/ssd1306.c | 2 | ||||
| -rw-r--r-- | drivers/avr/ssd1306.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/avr/ssd1306.c b/drivers/avr/ssd1306.c index 205f74950..1a09a2bcb 100644 --- a/drivers/avr/ssd1306.c +++ b/drivers/avr/ssd1306.c | |||
| @@ -11,6 +11,8 @@ | |||
| 11 | # include "sendchar.h" | 11 | # include "sendchar.h" |
| 12 | # include "timer.h" | 12 | # include "timer.h" |
| 13 | 13 | ||
| 14 | struct CharacterMatrix display; | ||
| 15 | |||
| 14 | // Set this to 1 to help diagnose early startup problems | 16 | // Set this to 1 to help diagnose early startup problems |
| 15 | // when testing power-on with ble. Turn it off otherwise, | 17 | // when testing power-on with ble. Turn it off otherwise, |
| 16 | // as the latency of printing most of the debug info messes | 18 | // as the latency of printing most of the debug info messes |
diff --git a/drivers/avr/ssd1306.h b/drivers/avr/ssd1306.h index 9669d1b7e..9131afcf6 100644 --- a/drivers/avr/ssd1306.h +++ b/drivers/avr/ssd1306.h | |||
| @@ -66,7 +66,7 @@ struct CharacterMatrix { | |||
| 66 | bool dirty; | 66 | bool dirty; |
| 67 | }; | 67 | }; |
| 68 | 68 | ||
| 69 | struct CharacterMatrix display; | 69 | extern struct CharacterMatrix display; |
| 70 | 70 | ||
| 71 | bool iota_gfx_init(void); | 71 | bool iota_gfx_init(void); |
| 72 | void iota_gfx_task(void); | 72 | void iota_gfx_task(void); |
