soft_rc: sleep between sending individual digits
soft_rc has a feature where a string made up of digits (e.g. "510") is
send as individual digits followed by OK (e.g. "5" + "1" + "0" + OK).
Currently we don't sleep between sending these digits and that seems to
cause problems on HD200. The fix adds a quarter-sec delay between
digits.
Change-Id: If5644f1b48899c399b57f51a2c7f40552ba1f246
diff --git a/cmds/soft_rc.py b/cmds/soft_rc.py
index 78bf5bc..685a069 100755
--- a/cmds/soft_rc.py
+++ b/cmds/soft_rc.py
@@ -142,7 +142,8 @@
LOG_VERB = 3
LOG_ALL = 99
-SLEEP_BEFORE_RELEASE_TIME = 0.1 # secs
+SLEEP_BEFORE_RELEASE_TIME = 0.1 # secs
+SLEEP_BETWEEN_DIGITS_TIME = 0.25 # secs
optspec = """
soft_rc.py [options]
@@ -523,6 +524,7 @@
for d in token:
tok = "DIGIT_" + d
self.SendKeyCode(tok, keymap.get(tok))
+ time.sleep(SLEEP_BETWEEN_DIGITS_TIME)
self.SendKeyCode("OK", keymap.get("OK"))
# regular key