diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2016-04-24 17:44:11 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2016-04-24 17:44:11 +0300 |
| commit | 6313cfd5597ffce0c70a472aa87ed68b6daa4419 (patch) | |
| tree | 9411952c7f9cad138735fce92574a883047a3538 | |
| parent | 74baa4895c8efd409eb10eaf1e6cfc0e2677b45c (diff) | |
| download | qmk_firmware-6313cfd5597ffce0c70a472aa87ed68b6daa4419.tar.gz qmk_firmware-6313cfd5597ffce0c70a472aa87ed68b6daa4419.zip | |
Fix some makefile issues, and symbol issues
| -rw-r--r-- | visualizer.c | 8 | ||||
| -rw-r--r-- | visualizer.mk | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/visualizer.c b/visualizer.c index 81ec8298f..0684a26d8 100644 --- a/visualizer.c +++ b/visualizer.c | |||
| @@ -77,8 +77,8 @@ static remote_object_t* remote_objects[] = { | |||
| 77 | 77 | ||
| 78 | #endif | 78 | #endif |
| 79 | 79 | ||
| 80 | GDisplay* LCDDisplay; | 80 | GDisplay* LCD_DISPLAY = 0; |
| 81 | GDisplay* LEDDisplay; | 81 | GDisplay* LED_DISPLAY = 0; |
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | void start_keyframe_animation(keyframe_animation_t* animation) { | 84 | void start_keyframe_animation(keyframe_animation_t* animation) { |
| @@ -437,8 +437,8 @@ void visualizer_init(void) { | |||
| 437 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); | 437 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); |
| 438 | #endif | 438 | #endif |
| 439 | // TODO: Make sure these works when either of these are disabled | 439 | // TODO: Make sure these works when either of these are disabled |
| 440 | LCDDisplay = gdispGetDisplay(0); | 440 | LCD_DISPLAY = gdispGetDisplay(0); |
| 441 | LEDDisplay = gdispGetDisplay(1); | 441 | LED_DISPLAY = gdispGetDisplay(1); |
| 442 | 442 | ||
| 443 | 443 | ||
| 444 | // We are using a low priority thread, the idea is to have it run only | 444 | // We are using a low priority thread, the idea is to have it run only |
diff --git a/visualizer.mk b/visualizer.mk index 96ca468e8..5cc199cf4 100644 --- a/visualizer.mk +++ b/visualizer.mk | |||
| @@ -21,13 +21,13 @@ | |||
| 21 | # SOFTWARE. | 21 | # SOFTWARE. |
| 22 | 22 | ||
| 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx | 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx |
| 24 | SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c | 24 | SRC += $(VISUALIZER_DIR)/visualizer.c |
| 25 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) | 25 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) |
| 26 | 26 | ||
| 27 | ifdef LCD_ENABLE | 27 | ifdef LCD_ENABLE |
| 28 | include $(GFXLIB)/gfx.mk | ||
| 29 | UDEFS += -DLCD_ENABLE | 28 | UDEFS += -DLCD_ENABLE |
| 30 | ULIBS += -lm | 29 | ULIBS += -lm |
| 30 | USE_UGFX = yes | ||
| 31 | endif | 31 | endif |
| 32 | 32 | ||
| 33 | ifdef LCD_BACKLIGHT_ENABLE | 33 | ifdef LCD_BACKLIGHT_ENABLE |
| @@ -39,6 +39,12 @@ endif | |||
| 39 | ifdef LED_ENABLE | 39 | ifdef LED_ENABLE |
| 40 | SRC += $(VISUALIZER_DIR)/led_test.c | 40 | SRC += $(VISUALIZER_DIR)/led_test.c |
| 41 | UDEFS += -DLED_ENABLE | 41 | UDEFS += -DLED_ENABLE |
| 42 | USE_UGFX = yes | ||
| 43 | endif | ||
| 44 | |||
| 45 | ifdef USE_UGFX | ||
| 46 | include $(GFXLIB)/gfx.mk | ||
| 47 | SRC += $(GFXSRC) | ||
| 42 | endif | 48 | endif |
| 43 | 49 | ||
| 44 | ifndef VISUALIZER_USER | 50 | ifndef VISUALIZER_USER |
