From 1249f74b31863bc0118057884abae10de698e4a5 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 3 Nov 2022 23:42:58 +0000 Subject: Reduce includes for caps_word header (#18948) --- quantum/caps_word.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'quantum/caps_word.c') diff --git a/quantum/caps_word.c b/quantum/caps_word.c index 5b83659f28..66fd0e8afb 100644 --- a/quantum/caps_word.c +++ b/quantum/caps_word.c @@ -12,7 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include "caps_word.h" +#include "timer.h" +#include "action.h" +#include "action_util.h" /** @brief True when Caps Word is active. */ static bool caps_word_active = false; @@ -36,6 +40,8 @@ void caps_word_task(void) { void caps_word_reset_idle_timer(void) { idle_timer = timer_read() + CAPS_WORD_IDLE_TIMEOUT; } +#else +void caps_word_task(void) {} #endif // CAPS_WORD_IDLE_TIMEOUT > 0 void caps_word_on(void) { -- cgit v1.2.3