Skip to content
Merged
Show file tree
Hide file tree
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 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ deploy:
tags: true

install:
- pip install pylint circuitpython-travis-build-tools
- pip install pylint circuitpython-build-tools

script:
- pylint adafruit_tsl2561.py
Expand Down
3 changes: 2 additions & 1 deletion adafruit_tsl2561.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def _read_register(self, reg, count=1):
if count == 1:
return self.buf[1]
elif count == 2:
return (self.buf[1], self.buf[2])
return self.buf[1], self.buf[2]
return None

def _write_control_register(self, reg):
self.buf[0] = _COMMAND_BIT | _REGISTER_CONTROL
Expand Down