]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/swd/pd.py
Add a CFP decoder.
[libsigrokdecode.git] / decoders / swd / pd.py
index 9b318d281a5cc008b9aa41e550dc48e0a0bb8ac3..0f7bc22aab281eaa8b418604f6970131a5524d69 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
@@ -93,6 +92,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         # SWD data/clock state
         self.state = 'UNKNOWN'
         self.sample_edge = RISING