]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/onewire_network/pd.py
Mark all stacked decoders as being PD API version 3.
[libsigrokdecode.git] / decoders / onewire_network / pd.py
index bddc4a8434246d12cbef28623c19ab191be57350..a24cb1655c52591121f5b3afb59509b1de2174b2 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
@@ -33,7 +32,7 @@ command = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'onewire_network'
     name = '1-Wire network layer'
     longname = '1-Wire serial communication bus (network layer)'
@@ -45,7 +44,7 @@ class Decoder(srd.Decoder):
         ('text', 'Human-readable text'),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.ss_block = 0
         self.es_block = 0
         self.state = 'COMMAND'