summaryrefslogtreecommitdiff
path: root/keyboards/cannonkeys/stm32f072
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@klaviyo.com>2019-04-07 21:32:16 -0400
committerDrashna Jaelre <drashna@live.com>2019-04-07 18:32:16 -0700
commit6a4c54870cff157f1056ca65363c9e862920cbc9 (patch)
tree44403dd531def735e8ac1d2b3ea909e0c46e2ece /keyboards/cannonkeys/stm32f072
parent8dd0ff6c7a1ebc70fb70fe64654353d3e5afeb68 (diff)
[Keyboard] Instant60 Tsangan (#5580)
* Update instant60 for tsangan version * Add extra init hook * Remove hacky first init thing
Diffstat (limited to 'keyboards/cannonkeys/stm32f072')
-rw-r--r--keyboards/cannonkeys/stm32f072/keyboard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboards/cannonkeys/stm32f072/keyboard.c b/keyboards/cannonkeys/stm32f072/keyboard.c
index 4316d51867..f94ecb5fbb 100644
--- a/keyboards/cannonkeys/stm32f072/keyboard.c
+++ b/keyboards/cannonkeys/stm32f072/keyboard.c
@@ -15,7 +15,6 @@ backlight_config_t kb_backlight_config = {
.level = BACKLIGHT_LEVELS
};
-
bool eeprom_is_valid(void)
{
return (eeprom_read_word(((void*)EEPROM_MAGIC_ADDR)) == EEPROM_MAGIC &&
@@ -51,9 +50,13 @@ void eeprom_init_kb(void)
} else {
// Save the magic number last, in case saving was interrupted
eeprom_set_valid(true);
+ save_backlight_config_to_eeprom();
}
}
+__attribute__ ((weak))
+void matrix_init_board(void);
+
void matrix_init_kb(void){
eeprom_init_kb();
/* MOSI pin*/
@@ -64,6 +67,8 @@ void matrix_init_kb(void){
leds_init();
#endif
backlight_init_ports();
+
+ matrix_init_board();
}
void matrix_scan_kb(void)