From f8603e9bd48e69826e99a6bb1a4ff8ffdae9a10b Mon Sep 17 00:00:00 2001
From: Victor <VictorN076@gmail.com>
Date: Wed, 24 Apr 2024 19:33:00 -0500
Subject: [PATCH] More cleanup - added more time for config layer to activate -
 Cleaned up unused code (e.g. combos) - removed uneeded oled driver include

---
 users/t4corun/features/combo.c |  9 ++++-----
 users/t4corun/features/combo.h | 19 ++++---------------
 users/t4corun/features/oled.h  |  1 -
 3 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/users/t4corun/features/combo.c b/users/t4corun/features/combo.c
index 4d857c50..d196770e 100644
--- a/users/t4corun/features/combo.c
+++ b/users/t4corun/features/combo.c
@@ -3,10 +3,10 @@
 uint16_t get_combo_term(uint16_t index, combo_t *combo) {
   // or with combo index, i.e. its name from enum.
   switch (index) {
-    /*
-    case CONFIGLAYER:
-      return COMBO_HOLD_TERM + 150;
-    */
+    
+    case LYR_CONFIG:
+      return COMBO_HOLD_TERM + 100;
+    
    
     default:
       return COMBO_TERM;
@@ -39,7 +39,6 @@ bool get_combo_must_hold(uint16_t index, combo_t *combo) {
   switch (index) {
 
     case LYR_CONFIG:
-    //case LYR_FUNCTION:
       return true;
 
     default:
diff --git a/users/t4corun/features/combo.h b/users/t4corun/features/combo.h
index 5616feb9..0df5c9d9 100644
--- a/users/t4corun/features/combo.h
+++ b/users/t4corun/features/combo.h
@@ -3,7 +3,6 @@
 
 enum combos {
 
-  // left hand combos
 #if defined(MOUSEKEY_ENABLE)
   MOUSE_BUTTON1,
   MOUSE_BUTTON2,
@@ -15,9 +14,6 @@ enum combos {
 
   KEY_ESC,
   KEY_ENT,
-  LYR_FUNCTION,
-
-  // right hand combos
   KEY_TAB,
   KEY_DEL,
   KEY_BSPC,
@@ -26,8 +22,10 @@ enum combos {
   COMBO_LENGTH
 };
 
+//their documentation is so confusing because you don't use COMBO_LEN defining the actions
+uint16_t COMBO_LEN = COMBO_LENGTH;
+
 
-// left hand combos
 #if defined(MOUSEKEY_ENABLE)
 const uint16_t PROGMEM mou_btn1_combo[] = { KC_D,    KC_F,    COMBO_END };
 const uint16_t PROGMEM mou_btn2_combo[] = { KC_C,    KC_V,    COMBO_END };
@@ -39,10 +37,6 @@ const uint16_t PROGMEM mou_drg_combo[]  = { KC_S,    KC_D,    COMBO_END };
 
 const uint16_t PROGMEM key_esc_combo[]  = { KC_Q,    KC_W,    COMBO_END };
 const uint16_t PROGMEM key_ent_combo[]  = { KC_X,    KC_C,    COMBO_END };
-//const uint16_t PROGMEM lyr_fun_combo[]  = { NUM,     TR_LSFT, COMBO_END };
-
-
-// right hand combos 
 const uint16_t PROGMEM key_tab_combo[]  = { KC_U,    KC_I,    COMBO_END };
 const uint16_t PROGMEM key_bspc_combo[] = { KC_M,    TR_COMM, COMBO_END };
 const uint16_t PROGMEM key_del_combo[]  = { TR_COMM, TR_DOT,  COMBO_END };
@@ -50,9 +44,9 @@ const uint16_t PROGMEM lyr_cfg_combo[]  = { KC_SPC,  NAV,     COMBO_END };
 
 
 
+
 combo_t key_combos[COMBO_LENGTH] = {
 
-  // left hand combos
 #if defined(MOUSEKEY_ENABLE)
   [MOUSE_BUTTON1] = COMBO(mou_btn1_combo, TR_BTN1),
   [MOUSE_BUTTON2] = COMBO(mou_btn2_combo, TR_BTN2),
@@ -64,9 +58,6 @@ combo_t key_combos[COMBO_LENGTH] = {
 
   [KEY_ESC]      = COMBO(key_esc_combo,  KC_ESC),
   [KEY_ENT]      = COMBO(key_ent_combo,  KC_ENT),
-  //[LYR_FUNCTION] = COMBO(lyr_fun_combo,  FUNC),
-
-  // right hand combos
   [KEY_TAB]      = COMBO(key_tab_combo,  KC_TAB),
   [KEY_DEL]      = COMBO(key_del_combo,  KC_DEL),
   [KEY_BSPC]     = COMBO(key_bspc_combo, KC_BSPC),
@@ -74,5 +65,3 @@ combo_t key_combos[COMBO_LENGTH] = {
 
 };
 
-//their documentation is so confusing because you don't use COMBO_LEN defining the actions
-uint16_t COMBO_LEN = COMBO_LENGTH;
diff --git a/users/t4corun/features/oled.h b/users/t4corun/features/oled.h
index 22065475..b4d6cd2a 100644
--- a/users/t4corun/features/oled.h
+++ b/users/t4corun/features/oled.h
@@ -1,7 +1,6 @@
 #pragma once
 
 #include "t4corun.h"
-#include "oled_driver.h"
 
 #define OLED_RENDER_KEYLOCK_NAME      "Lock:"
 #define OLED_RENDER_MODS_NAME         "Mods:"