aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-06-21 12:53:21 -0400
committerGitHub <noreply@github.com>2016-06-21 12:53:21 -0400
commit80c87054193b9243670aeb85adefbe1aa6c0fda0 (patch)
tree9ee304b9ca913328f1ea45500b34410f0d53ccfe /tmk_core
parenta8375fa15a6ca9285eb15ae89bcda898349e06f8 (diff)
downloadqmk_firmware-80c87054193b9243670aeb85adefbe1aa6c0fda0.tar.gz
qmk_firmware-80c87054193b9243670aeb85adefbe1aa6c0fda0.zip
reduces rgblight warnings, integrates completely (#428)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/avr/eeconfig.c5
-rw-r--r--tmk_core/common/eeconfig.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/common/avr/eeconfig.c b/tmk_core/common/avr/eeconfig.c
index c5391f5cf..656938fb3 100644
--- a/tmk_core/common/avr/eeconfig.c
+++ b/tmk_core/common/avr/eeconfig.c
@@ -14,7 +14,10 @@ void eeconfig_init(void)
14 eeprom_update_byte(EECONFIG_BACKLIGHT, 0); 14 eeprom_update_byte(EECONFIG_BACKLIGHT, 0);
15#endif 15#endif
16#ifdef AUDIO_ENABLE 16#ifdef AUDIO_ENABLE
17 eeprom_update_byte(EECONFIG_AUDIO, 0xFF); // On by default 17 eeprom_update_byte(EECONFIG_AUDIO, 0xFF); // On by default
18#endif
19#ifdef RGBLIGHT_ENABLE
20 eeprom_update_dword(EECONFIG_RGBLIGHT, 0);
18#endif 21#endif
19} 22}
20 23
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h
index ca47e0d2f..d8caa346f 100644
--- a/tmk_core/common/eeconfig.h
+++ b/tmk_core/common/eeconfig.h
@@ -32,6 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
32#define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5 32#define EECONFIG_MOUSEKEY_ACCEL (uint8_t *)5
33#define EECONFIG_BACKLIGHT (uint8_t *)6 33#define EECONFIG_BACKLIGHT (uint8_t *)6
34#define EECONFIG_AUDIO (uint8_t *)7 34#define EECONFIG_AUDIO (uint8_t *)7
35#define EECONFIG_RGBLIGHT (uint32_t *)8
35 36
36 37
37/* debug bit */ 38/* debug bit */