Init eeconfig before reading handedness (#17256)

pull/17439/head
Dasky 2022-06-20 15:31:27 +01:00 committed by GitHub
parent 36d60769f8
commit 62eaec52e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,10 @@ void split_pre_init(void) {
#if defined(SPLIT_HAND_PIN) #if defined(SPLIT_HAND_PIN)
setPinInput(SPLIT_HAND_PIN); setPinInput(SPLIT_HAND_PIN);
wait_us(100); wait_us(100);
#elif defined(EE_HANDS)
if (!eeconfig_is_enabled()) {
eeconfig_init();
}
#endif #endif
isLeftHand = is_keyboard_left(); isLeftHand = is_keyboard_left();