diff options
author | unknown <Uwe@.(none)> | 2010-04-23 18:47:43 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-04-23 19:38:50 +0200 |
commit | 23a13b21b38211c73cbe0418a88060f0586cc065 (patch) | |
tree | 8776464fc6fbd6a459f139dd15e2b7f6b28be8ae | |
parent | 6fe63193b0ff900335b791aba8099ab44f7b0c8a (diff) | |
download | libsigrokdecode-23a13b21b38211c73cbe0418a88060f0586cc065.tar.gz libsigrokdecode-23a13b21b38211c73cbe0418a88060f0586cc065.zip |
Rename sigrokdecode_register_i2c() to register().
-rw-r--r-- | scripts/i2c.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/i2c.py b/scripts/i2c.py index 6f9a160..0854895 100644 --- a/scripts/i2c.py +++ b/scripts/i2c.py @@ -149,8 +149,8 @@ def sigrokdecode_i2c(inbuf): return o # This is just a draft. -def sigrokdecode_register_i2c(): - metadata = { +def register(): + return { 'id': 'i2c', 'name': 'I2C', 'description': 'Inter-Integrated Circuit (I2C) bus', @@ -162,7 +162,6 @@ def sigrokdecode_register_i2c(): }, 'ouputformats': ['i2c', 'ascii'], } - return metadata # Use psyco (if available) as it results in huge performance improvements. try: |