Skip to content

Commit 1d6a816

Browse files
committed
Fix default I2C address
Shouldn't be shifted, 0x28 is the correct unshifted address
1 parent e2516f8 commit 1d6a816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwiic_soil_moisture_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
# NOTE: The first address in this list is considered the default I2C address for the
3838
# device.
3939
_FULL_ADDRESS_LIST = list(range(0x08,0x77+1)) # Full I2C Address List (excluding resrved addresses)
40-
_FULL_ADDRESS_LIST.remove(SOIL_MOISTURE_SENSOR_DEFAULT_ADDRESS >> 1) # Remove Default Address of Soil Moisture Sensor from list
41-
_AVAILABLE_I2C_ADDRESS = [SOIL_MOISTURE_SENSOR_DEFAULT_ADDRESS >> 1] # Initialize with Default Address of Soil Moisture Sensor
40+
_FULL_ADDRESS_LIST.remove(SOIL_MOISTURE_SENSOR_DEFAULT_ADDRESS) # Remove Default Address of Soil Moisture Sensor from list
41+
_AVAILABLE_I2C_ADDRESS = [SOIL_MOISTURE_SENSOR_DEFAULT_ADDRESS] # Initialize with Default Address of Soil Moisture Sensor
4242
_AVAILABLE_I2C_ADDRESS.extend(_FULL_ADDRESS_LIST) # Add Full Range of I2C Addresses
4343

4444

0 commit comments

Comments
 (0)