{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/2133","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/2133/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/2133/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/2133/events","html_url":"https://github.com/espressif/esp-idf/issues/2133","id":337228641,"node_id":"MDU6SXNzdWUzMzcyMjg2NDE=","number":2133,"title":"[TW#24055] Error using non-output pin for SCL in slave mode","user":{"login":"antonio-fiol","id":23309681,"node_id":"MDQ6VXNlcjIzMzA5Njgx","avatar_url":"https://avatars1.githubusercontent.com/u/23309681?v=4","gravatar_id":"","url":"https://api.github.com/users/antonio-fiol","html_url":"https://github.com/antonio-fiol","followers_url":"https://api.github.com/users/antonio-fiol/followers","following_url":"https://api.github.com/users/antonio-fiol/following{/other_user}","gists_url":"https://api.github.com/users/antonio-fiol/gists{/gist_id}","starred_url":"https://api.github.com/users/antonio-fiol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonio-fiol/subscriptions","organizations_url":"https://api.github.com/users/antonio-fiol/orgs","repos_url":"https://api.github.com/users/antonio-fiol/repos","events_url":"https://api.github.com/users/antonio-fiol/events{/privacy}","received_events_url":"https://api.github.com/users/antonio-fiol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-30T17:04:11Z","updated_at":"2018-08-29T03:32:25Z","closed_at":null,"author_association":"NONE","body":"## Environment\r\n\r\n- Development Kit:      ESP32-DevKitC\r\n- Core (if using chip or module): ESP-WROOM32\r\n- IDF version b1fa1ba6\r\n- Development Env:\t\tMake\r\n- Operating System:\t\tLinux on raspberry pi\r\n- Power Supply:         USB\r\n\r\n## Problem Description\r\nCommit 1ad68de (fixing #393) produces an error on the console when using a non-output pin in slave mode for SCL.\r\n```\r\nE (270) gpio: gpio_set_level(189): GPIO output gpio_num error\r\n```\r\nIt seems that the message may not be critical, but it's really confusing.\r\n\r\n### Expected Behavior\r\nAble to use pin 34 for SCL in slave mode.\r\n\r\n### Actual Behavior\r\nThe error stated in the description appears on the log.\r\n\r\n### Steps to repropduce\r\nModify the i2c sample to use pin 34 on the slave for SCL.\r\n\r\n## Suggested fix\r\nOnly call `gpio_set_level` if configuring MASTER mode, but not in SLAVE.\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/416812655","html_url":"https://github.com/espressif/esp-idf/issues/2133#issuecomment-416812655","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/2133","id":416812655,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjgxMjY1NQ==","user":{"login":"xiongyumail","id":13846382,"node_id":"MDQ6VXNlcjEzODQ2Mzgy","avatar_url":"https://avatars1.githubusercontent.com/u/13846382?v=4","gravatar_id":"","url":"https://api.github.com/users/xiongyumail","html_url":"https://github.com/xiongyumail","followers_url":"https://api.github.com/users/xiongyumail/followers","following_url":"https://api.github.com/users/xiongyumail/following{/other_user}","gists_url":"https://api.github.com/users/xiongyumail/gists{/gist_id}","starred_url":"https://api.github.com/users/xiongyumail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiongyumail/subscriptions","organizations_url":"https://api.github.com/users/xiongyumail/orgs","repos_url":"https://api.github.com/users/xiongyumail/repos","events_url":"https://api.github.com/users/xiongyumail/events{/privacy}","received_events_url":"https://api.github.com/users/xiongyumail/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T03:32:25Z","updated_at":"2018-08-29T03:32:25Z","author_association":"CONTRIBUTOR","body":"Hi @antonio-fiol \r\n\r\nA standard I2C Slaver requires the ability to output SCL, as well as configuring SCL as open-drain output in Master mode. If you don't need this capability, you can modify the I2C code. But it's impractical to make changes on the master branch."}}
{"actor":{"display_login":"xiongyumail"}}