From ff0bd3ffc5e371fba6a05086f0bb921f71226181 Mon Sep 17 00:00:00 2001 From: lokher Date: Wed, 1 Feb 2023 16:15:43 +0800 Subject: remove keyboard_post_init_user in transport.c --- keyboards/keychron/bluetooth/bluetooth.c | 5 +++++ keyboards/keychron/bluetooth/transport.c | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'keyboards') diff --git a/keyboards/keychron/bluetooth/bluetooth.c b/keyboards/keychron/bluetooth/bluetooth.c index 1ba8051f3a..ad133bc9b0 100644 --- a/keyboards/keychron/bluetooth/bluetooth.c +++ b/keyboards/keychron/bluetooth/bluetooth.c @@ -99,6 +99,11 @@ void bluetooth_init(void) { lpm_init(); rtc_timer_init(); + +#ifdef BLUETOOTH_NKRO_ENABLE + keymap_config.raw = eeconfig_read_keymap(); + nkro.bluetooth = keymap_config.nkro; +#endif } /* diff --git a/keyboards/keychron/bluetooth/transport.c b/keyboards/keychron/bluetooth/transport.c index 2cf69016fe..e5986de11b 100644 --- a/keyboards/keychron/bluetooth/transport.c +++ b/keyboards/keychron/bluetooth/transport.c @@ -188,10 +188,3 @@ void usb_remote_wakeup(void) { send_keyboard_report(); } } - -#ifdef BLUETOOTH_NKRO_ENABLE -void keyboard_post_init_user(void) { - keymap_config.raw = eeconfig_read_keymap(); - nkro.bluetooth = keymap_config.nkro; -} -#endif -- cgit v1.2.3