]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart/pd.py
All PDs: Bump api_version to 2.
[libsigrokdecode.git] / decoders / uart / pd.py
index 6119b8e31dab1b31c19766d87960304abb69624e..a0b13268301611ee654a903d979f922a95d21e3b 100644 (file)
@@ -70,7 +70,7 @@ def parity_ok(parity_type, parity_bit, data, num_data_bits):
         raise Exception('Invalid parity type: %d' % parity_type)
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'uart'
     name = 'UART'
     longname = 'Universal Asynchronous Receiver/Transmitter'
@@ -78,7 +78,7 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['logic']
     outputs = ['uart']
-    optional_probes = (
+    optional_channels = (
         # Allow specifying only one of the signals, e.g. if only one data
         # direction exists (or is relevant).
         {'id': 'rx', 'name': 'RX', 'desc': 'UART receive line'},