Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ynsta/steamcontroller.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStany MARCEL <stanypub@gmail.com>2015-12-08 23:33:14 +0300
committerStany MARCEL <stanypub@gmail.com>2015-12-08 23:33:14 +0300
commit10928d26604bfbfba715abb83f913495aef25f0a (patch)
tree30c1c3f8e1b6c19e5469c374ad799ff772654b67
parent4e2dd8f9ec801fa6f149f5c660baa19c5e5b781d (diff)
Remove timer for wireless mode
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
-rw-r--r--src/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/__init__.py b/src/__init__.py
index 1035a30..4d3e778 100644
--- a/src/__init__.py
+++ b/src/__init__.py
@@ -156,8 +156,13 @@ class SteamController(object):
self._transfer_list.append(transfer)
self._period = LPERIOD
- self._timer = Timer(LPERIOD, self._callbackTimer)
- self._timer.start()
+
+ if pid == 0x1102:
+ self._timer = Timer(LPERIOD, self._callbackTimer)
+ self._timer.start()
+ else:
+ self._timer = None
+
self._tup = None
self._lastusb = time.time()