diff options
| -rw-r--r-- | tmk_core/common/action_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/action_util.c b/tmk_core/common/action_util.c index 371acfa61..fd0e4409f 100644 --- a/tmk_core/common/action_util.c +++ b/tmk_core/common/action_util.c | |||
| @@ -97,7 +97,7 @@ static uint16_t oneshot_layer_time = 0; | |||
| 97 | inline bool has_oneshot_layer_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_layer_time) >= ONESHOT_TIMEOUT && !(get_oneshot_layer_state() & ONESHOT_TOGGLED); } | 97 | inline bool has_oneshot_layer_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_layer_time) >= ONESHOT_TIMEOUT && !(get_oneshot_layer_state() & ONESHOT_TOGGLED); } |
| 98 | # ifdef SWAP_HANDS_ENABLE | 98 | # ifdef SWAP_HANDS_ENABLE |
| 99 | static uint16_t oneshot_swaphands_time = 0; | 99 | static uint16_t oneshot_swaphands_time = 0; |
| 100 | inline bool has_oneshot_swaphands_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && !(swap_hands_oneshot >= SHO_PRESSED); } | 100 | inline bool has_oneshot_swaphands_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && (swap_hands_oneshot == SHO_ACTIVE); } |
| 101 | # endif | 101 | # endif |
| 102 | # endif | 102 | # endif |
| 103 | 103 | ||
