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
{{ message }}
This repository has been archived by the owner on May 18, 2022. It is now read-only.
After working with Attribute for a bit, especially when dynamically modifying the value, I find it very challenging to use because it takes a 'a [u8], so it pushes the burden upwards on where to store the slice? In my experience this always ends up being somewhere static, making it a bit hard to use with RTIC resources (or maybe my rust foo isn't good enough).
So as an example I want to read my boiler temp and then set it on the attr:
So I'm wondering if we can/should make it generic so it would be possible to store i.e. an array of two bytes in it instead of the slice, as long as the type can implement representing its value as a slice?
The text was updated successfully, but these errors were encountered:
Hi,
After working with
Attribute
for a bit, especially when dynamically modifying the value, I find it very challenging to use because it takes a'a [u8]
, so it pushes the burden upwards on where to store the slice? In my experience this always ends up being somewhere static, making it a bit hard to use with RTIC resources (or maybe my rust foo isn't good enough).So as an example I want to read my boiler temp and then set it on the attr:
I'm having issues with static being required:
So I'm wondering if we can/should make it generic so it would be possible to store i.e. an array of two bytes in it instead of the slice, as long as the type can implement representing its value as a slice?
The text was updated successfully, but these errors were encountered: