X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Faud%2Fpd.py;h=ffd79ec84da820265b660995c24ea10141713931;hp=15fce85d675e03593bf9828872a9944d43854a36;hb=4c180223a8ae12feb7bc3601e07e848fb9cdb493;hpb=86e7c29c4c80fe20d5e75db129f5e12398dfefb3 diff --git a/decoders/aud/pd.py b/decoders/aud/pd.py index 15fce85..ffd79ec 100644 --- a/decoders/aud/pd.py +++ b/decoders/aud/pd.py @@ -14,8 +14,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## # TODO: @@ -34,6 +33,7 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['logic'] outputs = ['aud'] + tags = ['Logic', 'MCU Debugging'] channels = ( {'id': 'audck', 'name': 'AUDCK', 'desc': 'AUD clock'}, {'id': 'naudsync', 'name': 'nAUDSYNC', 'desc': 'AUD sync'}, @@ -47,6 +47,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.ncnt = 0 self.nmax = 0 self.addr = 0