summaryrefslogtreecommitdiff
path: root/decoders/rgb_led_spi
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/rgb_led_spi')
-rw-r--r--decoders/rgb_led_spi/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/rgb_led_spi/pd.py b/decoders/rgb_led_spi/pd.py
index 95cbf19..d087556 100644
--- a/decoders/rgb_led_spi/pd.py
+++ b/decoders/rgb_led_spi/pd.py
@@ -33,6 +33,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.ss_cmd, self.es_cmd = 0, 0
self.mosi_bytes = []