diff options
author | Peter Tillemans <pti@snamellit.com> | 2019-05-31 02:11:55 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-30 17:11:55 -0700 |
commit | 88966767ee6005c33600e97ef36c873d33cb1e15 (patch) | |
tree | 612eda4065a91ed3955f220000a1f0168d4db4ad | |
parent | 3ef425423a9b8399b02c8240b4f56c3713f984f6 (diff) | |
download | qmk_firmware-88966767ee6005c33600e97ef36c873d33cb1e15.tar.gz |
[Keyboard] Fix jc65 when RGB or BACKLIGHT disabled (#6022)
-rw-r--r-- | keyboards/jc65/v32a/v32a.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/keyboards/jc65/v32a/v32a.c b/keyboards/jc65/v32a/v32a.c index 621789423..8176ade0a 100644 --- a/keyboards/jc65/v32a/v32a.c +++ b/keyboards/jc65/v32a/v32a.c @@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "i2c.h" #include "quantum.h" +#ifdef RGBLIGHT_ENABLE extern rgblight_config_t rgblight_config; void rgblight_set(void) { @@ -43,12 +44,16 @@ void rgblight_set(void) { i2c_init(); i2c_send(0xb0, (uint8_t*)led, 3 * RGBLED_NUM); } +#endif __attribute__ ((weak)) void matrix_scan_user(void) { - rgblight_task(); +#ifdef RGBLIGHT_ENABLE + rgblight_task(); +#endif } +#ifdef BACKLIGHT_ENABLE void backlight_init_ports(void) { DDRD |= (1<<0 | 1<<1 | 1<<4 | 1<<6); PORTD &= ~(1<<0 | 1<<1 | 1<<4 | 1<<6); @@ -62,4 +67,5 @@ void backlight_set(uint8_t level) { // Turn on the lights PORTD |= (1<<0 | 1<<1 | 1<<4 | 1<<6); } -}
\ No newline at end of file +} +#endif |