Skip to content

Commit cdb6d71

Browse files
authored
Merge pull request #9 from kattni/driver-lint-update
Update to travis.yaml and to resolve travis ci build failure
2 parents 82701a0 + 328b230 commit cdb6d71

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ deploy:
2222
tags: true
2323

2424
install:
25-
- pip install pylint circuitpython-travis-build-tools
25+
- pip install pylint circuitpython-build-tools
2626

2727
script:
2828
- pylint adafruit_tsl2561.py

adafruit_tsl2561.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ def _read_register(self, reg, count=1):
183183
if count == 1:
184184
return self.buf[1]
185185
elif count == 2:
186-
return (self.buf[1], self.buf[2])
186+
return self.buf[1], self.buf[2]
187+
return None
187188

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

0 commit comments

Comments
 (0)