Move dip switch init to back of the init process (#9233)
This commit is contained in:
parent
eefc05e078
commit
1110fe6c6f
2 changed files with 7 additions and 3 deletions
|
@ -630,9 +630,6 @@ void matrix_init_quantum() {
|
||||||
#ifdef OUTPUT_AUTO_ENABLE
|
#ifdef OUTPUT_AUTO_ENABLE
|
||||||
set_output(OUTPUT_AUTO);
|
set_output(OUTPUT_AUTO);
|
||||||
#endif
|
#endif
|
||||||
#ifdef DIP_SWITCH_ENABLE
|
|
||||||
dip_switch_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
matrix_init_kb();
|
matrix_init_kb();
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#ifdef VIA_ENABLE
|
#ifdef VIA_ENABLE
|
||||||
# include "via.h"
|
# include "via.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef DIP_SWITCH_ENABLE
|
||||||
|
# include "dip_switch.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Only enable this if console is enabled to print to
|
// Only enable this if console is enabled to print to
|
||||||
#if defined(DEBUG_MATRIX_SCAN_RATE) && defined(CONSOLE_ENABLE)
|
#if defined(DEBUG_MATRIX_SCAN_RATE) && defined(CONSOLE_ENABLE)
|
||||||
|
@ -269,6 +272,10 @@ void keyboard_init(void) {
|
||||||
keymap_config.nkro = 1;
|
keymap_config.nkro = 1;
|
||||||
eeconfig_update_keymap(keymap_config.raw);
|
eeconfig_update_keymap(keymap_config.raw);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef DIP_SWITCH_ENABLE
|
||||||
|
dip_switch_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
keyboard_post_init_kb(); /* Always keep this last */
|
keyboard_post_init_kb(); /* Always keep this last */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue