X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fspi%2Fpd.py;h=97d5571c066a3d8ec6664de9ef04cc766b4d756b;hp=374d22be3703fec4d0b2f038e2e9dfe9d4063a5f;hb=f04964c696336f5699a099bbd64785f199d91f4c;hpb=8aeedf9ee376f1b48fe9c42924ebf34f9c8c2ddd diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 374d22b..97d5571 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -63,7 +63,7 @@ spi_mode = { class SamplerateError(Exception): pass -class MissingDataError(Exception): +class ChannelError(Exception): pass class Decoder(srd.Decoder): @@ -279,6 +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)