onewire: combined reset and presence detect events, avoid unneeded overdrive exit...
[libsigrokdecode.git] / decoders / onewire_network / onewire_network.py
index 5587f974e44c5f9740d43dcfd6fd7edd582ccff4..d2b86a0622f0d7d949d5ceb9fc9d97f485b5b9a5 100644 (file)
@@ -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