From f47c750681c31e973a22c015b8b68dee1efd070b Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Fri, 4 Mar 2022 18:41:37 -0600 Subject: [PATCH 1/2] Stop using deprecated Leader variable `time_out` Replaced with the new `setTimeout()` function call. Signed-off-by: Michael Richters --- tests/plugins/Leader/basic/basic.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/Leader/basic/basic.ino b/tests/plugins/Leader/basic/basic.ino index 9995a663..7d010e25 100644 --- a/tests/plugins/Leader/basic/basic.ino +++ b/tests/plugins/Leader/basic/basic.ino @@ -72,7 +72,7 @@ static const kaleidoscope::plugin::Leader::dictionary_t leader_dictionary[] PROG void setup() { Kaleidoscope.setup(); - Leader.time_out = 20; + Leader.setTimeout(20); Leader.dictionary = leader_dictionary; } From a0751f25c8862fba423a8ebae07ffc3d2bb9f3e1 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Fri, 4 Mar 2022 18:43:41 -0600 Subject: [PATCH 2/2] Replace `Leader.time_out` with `Leader.setTimeout()` in docs Signed-off-by: Michael Richters --- plugins/Kaleidoscope-Leader/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Kaleidoscope-Leader/README.md b/plugins/Kaleidoscope-Leader/README.md index c79cefa5..abf64e3b 100644 --- a/plugins/Kaleidoscope-Leader/README.md +++ b/plugins/Kaleidoscope-Leader/README.md @@ -77,7 +77,7 @@ The plugin provides the `Leader` object, with the following methods and properti > are final actions, where one does not wish to continue the leader sequence > further in the hopes of finding a longer match. -### `.time_out` +### `.setTimeout(ms)` > The number of milliseconds to wait before a sequence times out. Once the > sequence timed out, if there is a partial match with an action, that will be