Closed faern closed 1 year ago
No, unfortunately, it can't. We should really update the comment generated from the template :laughing:. The idea was that we wouldn't need any more patches after 4.4, but we still have a few - one of which I imagine we'll keep forever (lstat).
Ok! Good to know. But yeah, I agree the comment should be upgraded. Preferably with a link to where the developer can read more about this. I suppose there is some issue or PR or similar where there is more info about the used patches and why they are needed?
LOL This is where that comment links to!
The template always generates the following code into
main
:... Even when the project uses ESP-IDF 4.4 (which is the default now!). Can this code be safely removed from any project using 4.4? Would it make sense to update the template to only conditionally contain this code when an older ESP-IDF is used? Currently the fresh template is a bit confusing since it's contradicting itself a bit.
https://github.com/esp-rs/esp-idf-template/blob/79a7345b69541409db1fea2ee792a4256b1c16d4/cargo/src/main.rs#L10-L12