]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/counter/pd.py
counter: explicit string formatting for annotation text
[libsigrokdecode.git] / decoders / counter / pd.py
index 4b5085bf772bd666a9859e7488f499faaf86ccf4..905de6e0514aa9c0a61c0628f9414a579e9410ec 100644 (file)
@@ -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)])