Skip to content

Commit cdfa594

Browse files
authored
fix #15: use "address" keyword for the i2c address
To be consistent with all the other drivers.
1 parent 690831b commit cdfa594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ccs811.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class CCS811:
9595
temp_offset = 0.0
9696
"""Temperature offset."""
9797

98-
def __init__(self, i2c_bus, addr=0x5A):
98+
def __init__(self, i2c_bus, address=0x5A):
9999
self.i2c_device = I2CDevice(i2c_bus, addr)
100100

101101
#check that the HW id is correct

0 commit comments

Comments
 (0)