summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-11-23 22:55:54 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-11-23 22:55:54 +0100
commit05aaa48637fe56ac087569d784dbfdc91341f619 (patch)
tree388128c6e8606958b80f26c12477537dcc80189c
parent5f987d6f312a7a586b0af5aca267b98747e5df4a (diff)
downloadlibsigrokdecode-05aaa48637fe56ac087569d784dbfdc91341f619.tar.gz
libsigrokdecode-05aaa48637fe56ac087569d784dbfdc91341f619.zip
jitter: Rename "jitter" binary out to "ascii-float".
-rw-r--r--decoders/jitter/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/jitter/pd.py b/decoders/jitter/pd.py
index b5e3a29..f2fdb62 100644
--- a/decoders/jitter/pd.py
+++ b/decoders/jitter/pd.py
@@ -60,7 +60,7 @@ class Decoder(srd.Decoder):
('sig_missed', 'Signal missed', (2,)),
)
binary = (
- ('jitter', 'Raw jitter values'),
+ ('ascii-float', 'Jitter values as newline-separated ASCII floats'),
)
def __init__(self, **kwargs):
@@ -105,11 +105,11 @@ class Decoder(srd.Decoder):
self.put(self.clk_start, self.sig_start, self.out_ann, [0, [delta_s]])
- # Helper function for raw jitter value which could be useful for statistics.
+ # Helper function for ASCII float jitter values (one value per line).
def putb(self, delta):
if delta is None:
return
- # format the delta to an ascii output
+ # Format the delta to an ASCII float output.
for x in str(delta):
self.put(self.clk_start, self.sig_start, self.out_bin, (0, bytes([ord(x)])))
self.put(self.clk_start, self.sig_start, self.out_bin, (0, bytes([ord('\n')])))