summaryrefslogtreecommitdiff
path: root/decoders/rgb_led_ws281x/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/rgb_led_ws281x/pd.py')
-rw-r--r--decoders/rgb_led_ws281x/pd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoders/rgb_led_ws281x/pd.py b/decoders/rgb_led_ws281x/pd.py
index a6bb356..adf68eb 100644
--- a/decoders/rgb_led_ws281x/pd.py
+++ b/decoders/rgb_led_ws281x/pd.py
@@ -89,6 +89,7 @@ class Decoder(srd.Decoder):
# Check RESET condition (manufacturer recommends 50 usec minimal,
# but real minimum is ~10 usec).
if not self.inreset and not pin and self.es is not None and \
+ self.ss is not None and \
(self.samplenum - self.es) / self.samplerate > 50e-6:
# Decode last bit value.