From 7e524d97b1d8e5c1f6f80f3a6a4d7d8287080fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 5 Mar 2018 10:16:58 +0100 Subject: [PATCH] Don't read (the default 250ms) DoubleTapSwitchLayerTimeout from the user configuration but rather set it to 150ms which feels quite optimal. --- right/src/config_parser/parse_config.c | 2 +- right/src/usb_report_updater.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/right/src/config_parser/parse_config.c b/right/src/config_parser/parse_config.c index 09e9e90..a240a23 100644 --- a/right/src/config_parser/parse_config.c +++ b/right/src/config_parser/parse_config.c @@ -136,7 +136,7 @@ parser_error_t ParseConfig(config_buffer_t *buffer) // If parsing succeeded then apply the parsed values. if (!ParserRunDry) { - DoubleTapSwitchLayerTimeout = doubleTapSwitchLayerTimeout; +// DoubleTapSwitchLayerTimeout = doubleTapSwitchLayerTimeout; // Update LED brightnesses and reinitialize LED drivers diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 0fd8b10..f4b0277 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -20,7 +20,7 @@ uint32_t UsbReportUpdateTime = 0; static uint32_t elapsedTime; -uint16_t DoubleTapSwitchLayerTimeout = 250; +uint16_t DoubleTapSwitchLayerTimeout = 150; uint16_t DoubleTapSwitchLayerReleaseTimeout = 100; static bool activeMouseStates[ACTIVE_MOUSE_STATES_COUNT];