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
When using the esp_idf_svc::sys::esp_app_desc!() macro I get the following error :
error[E0308]: mismatched types
--> /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.36.1/src/app_desc.rs:102:26
|
2 | macro_rules! esp_app_desc {
| -------------------------
| |
| in this expansion of `esp_idf_svc::sys::esp_app_desc!` (#1)
| in this expansion of `$crate::esp_app_desc!` (#2)
...
5 | $crate::esp_app_desc!(false);
| ---------------------------- in this macro invocation (#2)
...
102 | reserv3: [0; 4],
| ^^^^^^ expected an array with a fixed size of 3 elements, found one with 4 elements
|
::: src/main.rs:42:5
|
42 | esp_idf_svc::sys::esp_app_desc!();
| --------------------------------- in this macro invocation (#1)
Bug description
the definition of esp_app_desc_t seems to be incorrect when used with ESP-IDF 5.4 according to the definition in https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32/api-reference/system/misc_system_api.html#_CPPv4N14esp_app_desc_t7reserv3E
When using the esp_idf_svc::sys::esp_app_desc!() macro I get the following error :
Note:
esp-idf-sys/src/app_desc.rs
Line 105 in e662627
While the official definition is
To Reproduce
use ESP IDF v5.4 and include esp_idf_svc::sys::esp_app_desc!(); in your main()
Expected behavior
This could be a fix
mike1703@e06e6ef
Environment
ESP_IDF_VERSION = { value = "tag:v5.4" }
The text was updated successfully, but these errors were encountered: