diff options
Diffstat (limited to 'keyboards/ergodox/infinity/infinity.c')
| -rw-r--r-- | keyboards/ergodox/infinity/infinity.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/ergodox/infinity/infinity.c b/keyboards/ergodox/infinity/infinity.c index c5793385f..02db67eaf 100644 --- a/keyboards/ergodox/infinity/infinity.c +++ b/keyboards/ergodox/infinity/infinity.c | |||
| @@ -38,7 +38,6 @@ void init_serial_link_hal(void) { | |||
| 38 | // Using a higher pre-scalar without flicker is possible but FTM0_MOD will need to be reduced | 38 | // Using a higher pre-scalar without flicker is possible but FTM0_MOD will need to be reduced |
| 39 | // Which will reduce the brightness range | 39 | // Which will reduce the brightness range |
| 40 | #define PRESCALAR_DEFINE 0 | 40 | #define PRESCALAR_DEFINE 0 |
| 41 | #ifdef VISUALIZER_ENABLE | ||
| 42 | void lcd_backlight_hal_init(void) { | 41 | void lcd_backlight_hal_init(void) { |
| 43 | // Setup Backlight | 42 | // Setup Backlight |
| 44 | SIM->SCGC6 |= SIM_SCGC6_FTM0; | 43 | SIM->SCGC6 |= SIM_SCGC6_FTM0; |
| @@ -76,7 +75,6 @@ void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) { | |||
| 76 | CHANNEL_GREEN.CnV = g; | 75 | CHANNEL_GREEN.CnV = g; |
| 77 | CHANNEL_BLUE.CnV = b; | 76 | CHANNEL_BLUE.CnV = b; |
| 78 | } | 77 | } |
| 79 | #endif | ||
| 80 | 78 | ||
| 81 | __attribute__ ((weak)) | 79 | __attribute__ ((weak)) |
| 82 | void matrix_init_user(void) { | 80 | void matrix_init_user(void) { |
| @@ -92,6 +90,10 @@ void matrix_init_kb(void) { | |||
| 92 | // runs once when the firmware starts up | 90 | // runs once when the firmware starts up |
| 93 | 91 | ||
| 94 | matrix_init_user(); | 92 | matrix_init_user(); |
| 93 | // The backlight always has to be initialized, otherwise it will stay lit | ||
| 94 | #ifndef VISUALIZER_ENABLE | ||
| 95 | lcd_backlight_hal_init(); | ||
| 96 | #endif | ||
| 95 | } | 97 | } |
| 96 | 98 | ||
| 97 | void matrix_scan_kb(void) { | 99 | void matrix_scan_kb(void) { |
