Skip to content

Fix things for ESP-IDF 6.0#174

Merged
fgo-ableton merged 2 commits intoAbleton:masterfrom
docwilco:esp-idf-6
Mar 6, 2026
Merged

Fix things for ESP-IDF 6.0#174
fgo-ableton merged 2 commits intoAbleton:masterfrom
docwilco:esp-idf-6

Conversation

@docwilco
Copy link
Contributor

@docwilco docwilco commented Mar 4, 2026

ESP-IDF 6.0 has a higher warning level, and has phased out esp_netif_next().

esp_netif_next_unsafe() is basically the same, but the rename is to alert people to its inherent unsafe nature. Using esp_netif_tcpip_exec() ensures the proper safety and avoids use after free situations.

The redundant move and missing field initializer were causing build failures.

@fgo-ableton
Copy link
Contributor

Thanks! The changes look good to me.
We should also update the EDP-IDF version used on CI then. Could you please update here and rebase?

@fgo-ableton fgo-ableton closed this Mar 5, 2026
@fgo-ableton fgo-ableton reopened this Mar 5, 2026
@docwilco
Copy link
Contributor Author

docwilco commented Mar 5, 2026

there's a couple of versions in play with ESP-IDF, 5.3 or 5.4 are commonly used for Rust, 5.5 is the latest stable release, and 6.0 is currently in pre-release mode.

Do you want me to setup with 5.5 and 6.0?

@fgo-ableton
Copy link
Contributor

Latest stable sounds good to me!

docwilco added 2 commits March 5, 2026 23:03
ESP-IDF 6.0 has a higher warning level, and has phased out `esp_netif_next()`.

`esp_netif_next_unsafe()` is basically the same, but the rename is to alert people to its inherent unsafe nature.
Using `esp_netif_tcpip_exec()` ensures the proper safety and avoids use after free situations.

The redundant move and missing field initializer were causing build failures.
@docwilco
Copy link
Contributor Author

docwilco commented Mar 5, 2026

Humbly requesting a new release (b2?) with once this is in

@docwilco
Copy link
Contributor Author

docwilco commented Mar 6, 2026

Looks like v5.5 built nicely. You sure you don't want matrix with 5.3, 5.5 and 6.0, just like Linux and Windows have multiple?

@fgo-ableton
Copy link
Contributor

For now I think one version is enough. Adding another matrix will lead to CI runs taking even longer.

@fgo-ableton fgo-ableton merged commit b6d5c59 into Ableton:master Mar 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants