Closed muhammadtalhas closed 5 years ago
Oops, this is my fault. @kshyshkin investigated this bug in #12: this behavior is caused by garbage in i2c device descriptor (i2c_dev_t dev
). You can fill this struct by zeroes before use:
...
i2c_dev_t dev;
memset(&dev, 0, sizeof(i2c_dev_t));
...
I've updated all examples.
Ahh that makes sense!!
Thanks!
I'm messing around with the ds3231 library and it works great... most of the time.
Heres some code:
It results in this error:
However, as soon as I remove the line
It starts pulling data no problem. No changes to the pins.
I'm farley new to ESP-IDF so I might just be doing something dumb but seems weird to me that creating the char array messes with the ability to read from the RTC