diff options
Diffstat (limited to 'tmk_core/common/eeconfig.c')
| -rw-r--r-- | tmk_core/common/eeconfig.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index fe56c57d1..e15897552 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c | |||
| @@ -13,6 +13,10 @@ | |||
| 13 | # include "eeprom_driver.h" | 13 | # include "eeprom_driver.h" |
| 14 | #endif | 14 | #endif |
| 15 | 15 | ||
| 16 | #if defined(HAPTIC_ENABLE) | ||
| 17 | # include "haptic.h" | ||
| 18 | #endif | ||
| 19 | |||
| 16 | /** \brief eeconfig enable | 20 | /** \brief eeconfig enable |
| 17 | * | 21 | * |
| 18 | * FIXME: needs doc | 22 | * FIXME: needs doc |
| @@ -65,6 +69,15 @@ void eeconfig_init_quantum(void) { | |||
| 65 | eeprom_update_byte(EECONFIG_HANDEDNESS, 0); | 69 | eeprom_update_byte(EECONFIG_HANDEDNESS, 0); |
| 66 | #endif | 70 | #endif |
| 67 | 71 | ||
| 72 | #if defined(HAPTIC_ENABLE) | ||
| 73 | haptic_reset(); | ||
| 74 | #else | ||
| 75 | // this is used in case haptic is disabled, but we still want sane defaults | ||
| 76 | // in the haptic configuration eeprom. All zero will trigger a haptic_reset | ||
| 77 | // when a haptic-enabled firmware is loaded onto the keyboard. | ||
| 78 | eeprom_update_dword(EECONFIG_HAPTIC, 0); | ||
| 79 | #endif | ||
| 80 | |||
| 68 | eeconfig_init_kb(); | 81 | eeconfig_init_kb(); |
| 69 | } | 82 | } |
| 70 | 83 | ||
