From d7be7c45e191cdb4046ee5f2fda51ed682ed0d57 Mon Sep 17 00:00:00 2001 From: Nebojsa Cvetkovic Date: Wed, 12 Jun 2024 12:41:44 +0100 Subject: [PATCH] fix(i2c): Don't print developer notes to ESP_LOG --- components/esp_driver_i2c/i2c_master.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/esp_driver_i2c/i2c_master.c b/components/esp_driver_i2c/i2c_master.c index afed2c9be4..2165b012fd 100644 --- a/components/esp_driver_i2c/i2c_master.c +++ b/components/esp_driver_i2c/i2c_master.c @@ -918,9 +918,6 @@ esp_err_t i2c_new_master_bus(const i2c_master_bus_config_t *bus_config, i2c_mast i2c_master->base->sda_num = bus_config->sda_io_num; i2c_master->base->pull_up_enable = bus_config->flags.enable_internal_pullup; - if (i2c_master->base->pull_up_enable == false) { - ESP_LOGW(TAG, "Please check pull-up resistances whether be connected properly. Otherwise unexpected behavior would happen. For more detailed information, please read docs"); - } ESP_GOTO_ON_ERROR(i2c_param_master_config(i2c_master->base, bus_config), err, TAG, "i2c configure parameter failed"); i2c_master->bus_lock_mux = xSemaphoreCreateBinaryWithCaps(I2C_MEM_ALLOC_CAPS); @@ -946,7 +943,6 @@ esp_err_t i2c_new_master_bus(const i2c_master_bus_config_t *bus_config, i2c_mast xSemaphoreGive(i2c_master->bus_lock_mux); // Initialize the queue if (bus_config->trans_queue_depth) { - ESP_LOGW(TAG, "Please note i2c asynchronous is only used for specific scenario currently. It's experimental for other users because user cannot get bus error from API. And It's not compatible with ``i2c_master_probe``. If user makes sure there won't be any error on bus and tested with no problem, this message can be ignored."); i2c_master->async_trans = true; i2c_master->sent_all = true; i2c_master->trans_finish = true;