summaryrefslogtreecommitdiffstats
path: root/src/input.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-04-02 20:39:05 -0300
committerAndrés <andmarti@gmail.com>2021-04-02 20:39:05 -0300
commit3ce44801c065fffcded9ea2d8dfa64a124734961 (patch)
treec5fb9ae0da5917571120cb77dcf9af59e54fd7e0 /src/input.c
parentff28237e821cfb80577065642266b581a9c0c12d (diff)
Added command_timeout configuration variable
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c
index 9b3c842..7fd8135 100644
--- a/src/input.c
+++ b/src/input.c
@@ -103,7 +103,7 @@ void handle_input(struct block * buffer) {
* if so, wait a mapping_timeout (1500ms), before triggering has_cmd..
*/
while (
- ( ! has_cmd(buffer, msec) && msec <= CMDTIMEOUT) ||
+ ( ! has_cmd(buffer, msec) && msec <= get_conf_int("command_timeout")) ||
( could_be_mapping(buffer) && msec_init < get_conf_int("mapping_timeout"))
) {
@@ -203,7 +203,7 @@ void handle_input(struct block * buffer) {
}
}
- if (msec >= CMDTIMEOUT) { // timeout. Command incomplete
+ if (msec >= get_conf_int("command_timeout")) { // timeout. Command incomplete
cmd_pending = 0; // No longer wait for a command, set flag.
cmd_multiplier = 0; // Reset multiplier
} else { // Execute command or mapping