summaryrefslogtreecommitdiff
path: root/decoders/uart/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/uart/pd.py')
-rw-r--r--decoders/uart/pd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py
index 63ea50d..fef3aa5 100644
--- a/decoders/uart/pd.py
+++ b/decoders/uart/pd.py
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
- self.samplerate = value;
+ self.samplerate = value
# The width of one UART bit in number of samples.
self.bit_width = float(self.samplerate) / float(self.options['baudrate'])
@@ -359,4 +359,3 @@ class Decoder(srd.Decoder):
# Save current RX/TX values for the next round.
self.oldbit[rxtx] = signal
-