X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fcounter%2Fpd.py;fp=decoders%2Fcounter%2Fpd.py;h=905de6e0514aa9c0a61c0628f9414a579e9410ec;hp=4b5085bf772bd666a9859e7488f499faaf86ccf4;hb=866a80dbed40dcd295efd4c7f28288b7835c973d;hpb=821a21418cb64f77f444c440752ac09a8bc97fb6 diff --git a/decoders/counter/pd.py b/decoders/counter/pd.py index 4b5085b..905de6e 100644 --- a/decoders/counter/pd.py +++ b/decoders/counter/pd.py @@ -98,8 +98,8 @@ class Decoder(srd.Decoder): continue edge_count += 1 - self.putc(ROW_EDGE, [str(edge_count)]) + self.putc(ROW_EDGE, ["{:d}".format(edge_count)]) if divider and (edge_count % divider) == 0: word_count += 1 - self.putc(ROW_WORD, [str(word_count)]) + self.putc(ROW_WORD, ["{:d}".format(word_count)])