Skip to content

Commit a4c7bbe

Browse files
committed
i2c_bus: drop 7 bit address check
This is required to be able to detect the touch controller type.
1 parent cc1d375 commit a4c7bbe

File tree

1 file changed

+0
-5
lines changed
  • components/esp_peripherals/driver/i2c_bus

1 file changed

+0
-5
lines changed

components/esp_peripherals/driver/i2c_bus/i2c_bus.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ esp_err_t i2c_bus_cmd_begin(i2c_bus_handle_t bus, i2c_cmd_handle_t cmd, portBASE
197197
esp_err_t i2c_bus_probe_addr(i2c_bus_handle_t bus, uint8_t addr)
198198
{
199199
I2C_BUS_CHECK(bus != NULL, "Handle error", ESP_FAIL);
200-
/* Use 7 bit address here */
201-
if (addr >= 0x80) {
202-
ESP_LOGE(TAG, "I2C addr out of range");
203-
return ESP_ERR_INVALID_ARG;
204-
}
205200

206201
i2c_bus_t *i2c_bus = (i2c_bus_t *) bus;
207202
mutex_lock(i2c_bus->bus_lock);

0 commit comments

Comments
 (0)