You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful to estimate accurately the required size to allocate a static buffer or memory on the stack.
The macro ``I2C_LINK_RECOMMENDED_SIZE` rely on this constant. Since it's wrong, the estimated size is not even close to the used size.
What is the actual behavior?
Used size after [allocate, start, write, write, write, stop]:
Answers checklist.
IDF version.
5.2.2
Espressif SoC revision.
ESP32 v3.1
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-DevKitC V4
Power Supply used.
USB
What is the expected behavior?
The constant
I2C_INTERNAL_STRUCT_SIZE
in driver/i2c.h should match a link size which issizeof(i2c_cmd_link_t)
.It should be
20
and not24
.esp-idf/components/driver/i2c/include/driver/i2c.h
Line 38 in 3b8741b
This is useful to estimate accurately the required size to allocate a static buffer or memory on the stack.
The macro ``I2C_LINK_RECOMMENDED_SIZE` rely on this constant. Since it's wrong, the estimated size is not even close to the used size.
What is the actual behavior?
Used size after [allocate, start, write, write, write, stop]:
Recommended size from i2c.h
Steps to reproduce.
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: