summaryrefslogtreecommitdiff
path: root/decoders/onewire_network
diff options
context:
space:
mode:
authorIztok Jeras <iztok.jeras@gmail.com>2012-07-13 22:59:12 +0200
committerIztok Jeras <iztok.jeras@gmail.com>2012-07-15 15:02:57 +0200
commite540618c9d8d04ebb2e639ad1e650d689c89a818 (patch)
tree0a62225b3d5143ff48c772959b9532120f95a9be /decoders/onewire_network
parent99f5f3b5ac31347795582872a5d92f3d9430c21d (diff)
downloadlibsigrokdecode-e540618c9d8d04ebb2e639ad1e650d689c89a818.tar.gz
libsigrokdecode-e540618c9d8d04ebb2e639ad1e650d689c89a818.zip
onewire: combined reset and presence detect events, avoid unneeded overdrive exit message
Diffstat (limited to 'decoders/onewire_network')
-rw-r--r--decoders/onewire_network/onewire_network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/onewire_network/onewire_network.py b/decoders/onewire_network/onewire_network.py
index 5587f97..d2b86a0 100644
--- a/decoders/onewire_network/onewire_network.py
+++ b/decoders/onewire_network/onewire_network.py
@@ -77,7 +77,7 @@ class Decoder(srd.Decoder):
[code, val] = data
# State machine.
- if (code == "RESET"):
+ if (code == "RESET/PRESENCE"):
self.state = "COMMAND"
self.search = "P"
self.bit_cnt = 0