]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spi/pd.py
spdif: Simplify get_pulse_type() a bit.
[libsigrokdecode.git] / decoders / spi / pd.py
index 96c0689f8a7e6ea04ccc57caca27885c4d522d72..97d5571c066a3d8ec6664de9ef04cc766b4d756b 100644 (file)
@@ -63,7 +63,7 @@ spi_mode = {
 class SamplerateError(Exception):
     pass
 
-class MissingDataError(Exception):
+class ChannelError(Exception):
     pass
 
 class Decoder(srd.Decoder):
@@ -279,7 +279,6 @@ class Decoder(srd.Decoder):
 
             # Either MISO or MOSI (but not both) can be omitted.
             if not (self.have_miso or self.have_mosi):
-                raise MissingDataError('Either MISO or MOSI (or both) pins required.')
+                raise ChannelError('Either MISO or MOSI (or both) pins required.')
 
             self.find_clk_edge(miso, mosi, clk, cs)
-