]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/jtag/pd.py
Backport recent changes from mainline.
[libsigrokdecode.git] / decoders / jtag / pd.py
index e1f32e07a58e57c411a03e9b33978fa110ecc72c..7f784eb138dbe19a28571978ece928ce011624d0 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
 ##
 
 import sigrokdecode as srd
@@ -89,6 +88,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         # self.state = 'TEST-LOGIC-RESET'
         self.state = 'RUN-TEST/IDLE'
         self.oldstate = None