esp-rs / esp-idf-svc

Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)
https://docs.esp-rs.org/esp-idf-svc/
Apache License 2.0
333 stars 183 forks source link

remove 0 byte from nvs.get_str #349

Closed MnlPhlp closed 10 months ago

MnlPhlp commented 10 months ago

The get_str function of nvs includes a 0 byte at the end that should not be there in rust.

I discovered this when passing the returned string to wifi setup and getting an esp error.