Skip to content

Commit 34e3f3b

Browse files
committed
Documentation typo correction.
1 parent bbf620f commit 34e3f3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Adafruit_TSL2561/Adafruit_TSL2561.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def __init__(self, address=ADDR_FLOAT, mode=MODE_CONTINUOUS, gain=_gain, integra
170170
# of 0x0A (0b00001010) for my TSL2561T when the datasheet says I should
171171
# get 0x50 (0b01010000). The Adafruit Arduino code also checks for
172172
# 0x0A, so the datasheet is probably just wrong.
173-
# Additionally, the even though the datasheet says the ID register never
173+
#
174+
# Additionally, even though the datasheet says the ID register never
174175
# changes, it only appears to return the product identifier if the
175176
# sensor is powered off. If the sensor is on, the register returns
176177
# 0x00. Consequently, if we get a 0x00 result (which is also what a
@@ -263,7 +264,7 @@ def lux(self):
263264
# equivalents for purposes of doing the calculation. That's what the
264265
# `chscale` variable accomplishes. The integration time scaling is
265266
# precomputed. The gain scaling is simply based on the current gain
266-
# relative the the 16x reference.
267+
# relative to the 16x reference.
267268
chscale = self._integrationTime.scale * (16.0 / self.gain)
268269
schan0 = chan0 * chscale
269270
schan1 = chan1 * chscale

0 commit comments

Comments
 (0)