summaryrefslogtreecommitdiff
path: root/quantum/caps_word.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
committerNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
commit4020674163fc80914059c4c9c3be5c0ae00bd150 (patch)
tree6f4187d72b04d03572adf507502afbda9726d696 /quantum/caps_word.c
parent8f9b49dc5b05fd3421e47aa76822a5b2199dfca6 (diff)
parent9e78e65a566487b2f4fe7b663971a01deb6ddad2 (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'quantum/caps_word.c')
-rw-r--r--quantum/caps_word.c6
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>
#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) {