Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire.begin() is not called if ESP8266 is not defined #66

Open
hady-sarhan opened this issue Sep 21, 2023 · 0 comments
Open

Wire.begin() is not called if ESP8266 is not defined #66

hady-sarhan opened this issue Sep 21, 2023 · 0 comments
Assignees
Labels

Comments

@hady-sarhan
Copy link

Code snippet below is from Line 250 of MCP7940.cpp. Both #if and #elif conditions are the same. Wire.begin() never gets called. if ESP8266 is not defined.

#if defined(ESP8266)
  Wire.begin(sda, scl);  // Start I2C as master device using the specified SDA and SCL
#elif defined(ESP8266)
  Wire.begin();  // Start I2C as master device
#endif

Changing `#elif defined(ESP8266)` to `#else` solves the issue.

  - Library Version: 1.2.0
  - Testing on Arduino Due
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants