From e97b6ef569f73e387b2597dfa144c01838c0e27c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 10 Jan 2012 21:05:09 +0100 Subject: srd: annotation -> annotations. In the PDs (Python code), the 'annotation' variable/attribute is a list of annotation formats. Use the plural 'annotations' as we do for other lists such as 'inputs', 'outputs', 'probes', 'options', and so on. --- decoders/ddc.py | 2 +- decoders/i2c.py | 2 +- decoders/pan1321.py | 2 +- decoders/uart.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'decoders') diff --git a/decoders/ddc.py b/decoders/ddc.py index 58c74a4..b4681d0 100644 --- a/decoders/ddc.py +++ b/decoders/ddc.py @@ -37,7 +37,7 @@ class Decoder(sigrokdecode.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['ddc'] - annotation = [ + annotations = [ ["Byte stream", "DDC byte stream as read from display."], ] diff --git a/decoders/i2c.py b/decoders/i2c.py index 60558c5..b101e8a 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -137,7 +137,7 @@ class Decoder(sigrokdecode.Decoder): options = { 'address-space': ['Address space (in bits)', 7], } - annotation = [ + annotations = [ # ANN_SHIFTED ["7-bit shifted hex", "Read/Write bit shifted out from the 8-bit i2c slave address"], diff --git a/decoders/pan1321.py b/decoders/pan1321.py index 3c09310..bebfc68 100644 --- a/decoders/pan1321.py +++ b/decoders/pan1321.py @@ -45,7 +45,7 @@ class Decoder(sigrokdecode.Decoder): # ] options = { } - annotation = [ + annotations = [ # ANN_ASCII ["ASCII", "TODO: description"], ] diff --git a/decoders/uart.py b/decoders/uart.py index 1c204dc..c9f7875 100644 --- a/decoders/uart.py +++ b/decoders/uart.py @@ -217,7 +217,7 @@ class Decoder(sigrokdecode.Decoder): # TODO: Options to invert the signal(s). # ... } - annotation = [ + annotations = [ # ANN_ASCII ["ASCII", "TODO: description"], # ANN_DEC -- cgit v1.2.3-70-g09d2