We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69737c5 + 05decdb commit f0814e6Copy full SHA for f0814e6
driver/sccb-ng.c
@@ -80,7 +80,7 @@ int SCCB_Install_Device(uint8_t slv_addr)
80
esp_err_t ret;
81
i2c_master_bus_handle_t bus_handle;
82
83
- if (device_count > MAX_DEVICES)
+ if (device_count >= MAX_DEVICES)
84
{
85
ESP_LOGE(TAG, "cannot add more than %d devices", MAX_DEVICES);
86
return ESP_FAIL;
0 commit comments