|
@@ -97,7 +97,7 @@ static uint16_t oneshot_layer_time = 0;
|
|
|
inline bool has_oneshot_layer_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_layer_time) >= ONESHOT_TIMEOUT && !(get_oneshot_layer_state() & ONESHOT_TOGGLED); }
|
|
|
# ifdef SWAP_HANDS_ENABLE
|
|
|
static uint16_t oneshot_swaphands_time = 0;
|
|
|
-inline bool has_oneshot_swaphands_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && !(swap_hands_oneshot >= SHO_PRESSED); }
|
|
|
+inline bool has_oneshot_swaphands_timed_out() { return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && (swap_hands_oneshot == SHO_ACTIVE); }
|
|
|
# endif
|
|
|
# endif
|
|
|
|