aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/rev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/rev2/rev2.c')
-rw-r--r--keyboards/helix/rev2/rev2.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/helix/rev2/rev2.c b/keyboards/helix/rev2/rev2.c
index abaa02cdb..12b8ae9ef 100644
--- a/keyboards/helix/rev2/rev2.c
+++ b/keyboards/helix/rev2/rev2.c
@@ -1,5 +1,9 @@
1#include "helix.h" 1#include "helix.h"
2 2
3// Each keymap.c should use is_keyboard_master() instead of 'is_master'.
4// But keep 'is_master' for a while for backwards compatibility
5// for the old keymap.c.
6uint8_t is_master = false;
3 7
4#ifdef SSD1306OLED 8#ifdef SSD1306OLED
5#include "ssd1306.h" 9#include "ssd1306.h"
@@ -15,7 +19,23 @@ void led_set_kb(uint8_t usb_led) {
15#endif 19#endif
16 20
17void matrix_init_kb(void) { 21void matrix_init_kb(void) {
22 // Each keymap.c should use is_keyboard_master() instead of is_master.
23 // But keep is_master for a while for backwards compatibility
24 // for the old keymap.c.
25 is_master = is_keyboard_master();
18 26
19 matrix_init_user(); 27 matrix_init_user();
20}; 28};
21 29
30void keyboard_post_init_kb(void) {
31#if defined(DEBUG_MATRIX_SCAN_RATE)
32 debug_enable = true;
33#endif
34 keyboard_post_init_user();
35}
36
37#if defined(SPLIT_KEYBOARD) && defined(SSD1306OLED)
38void matrix_slave_scan_user(void) {
39 matrix_scan_user();
40}
41#endif