Thank you for your contribution Christian Foucher! Actually, yes, given all the different types in embedded and the singleton pattern, setting up function parameters can take a while to digestive. This is why I try to avoid them in beginner tutorials. Maybe it's a topic for a separate blog post.
I revised your refactor and yes, I am printing the value regardless of the update. I will update the post and repo to incorporate this as an optimization.
Christian Foucher
Industrial software engineer (embedded and computer platforms). Rust enthusiast.
Hello Omar,
I propose a refactoring in your github repository (see issue #2).
I admit that it was not straight forward to write the parameters of the function!