diff options
author | Stany MARCEL <stanypub@gmail.com> | 2015-12-08 23:33:14 +0300 |
---|---|---|
committer | Stany MARCEL <stanypub@gmail.com> | 2015-12-08 23:33:14 +0300 |
commit | 10928d26604bfbfba715abb83f913495aef25f0a (patch) | |
tree | 30c1c3f8e1b6c19e5469c374ad799ff772654b67 | |
parent | 4e2dd8f9ec801fa6f149f5c660baa19c5e5b781d (diff) |
Remove timer for wireless mode
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
-rw-r--r-- | src/__init__.py | 9 |
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() |