Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/raspberrypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class {{ info.title }}:
def __init__(self):
# Initialize connection to peripheral
self.bus = smbus.SMBus(1)

{% for register in registers %}
{% for key in register.keys() %}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will require the test output to be re-generated.

def get_{{key.lower()}}(self):
"""
{{utils.pad_string(" ", register[key].description)}}
Expand Down