forked from mirrors/qmk_userspace
Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
This commit is contained in:
parent
0f77ae6a20
commit
cf935d97ae
170 changed files with 276 additions and 276 deletions
|
@ -98,12 +98,12 @@ enum {
|
|||
|
||||
# if (defined(ONESHOT_TIMEOUT) && (ONESHOT_TIMEOUT > 0))
|
||||
static uint16_t oneshot_layer_time = 0;
|
||||
inline bool has_oneshot_layer_timed_out() {
|
||||
inline bool has_oneshot_layer_timed_out(void) {
|
||||
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() {
|
||||
inline bool has_oneshot_swaphands_timed_out(void) {
|
||||
return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && (swap_hands_oneshot == SHO_ACTIVE);
|
||||
}
|
||||
# endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue