Where/how to store state for MUIFs? #2686
-
|
I'm trying to create a IP address editor MUI without an extra form. The idea is that the field would display the address and when the select button is pressed, the first byte would become MUD editable, then pressing select again would jump to the second byte for MUD editing, and so on. Pressing select on the last byte exits editing mode and the entire address would become one field again. To do this, I need to store state information like the index of the current byte being edited. I tried to do this along the lines of One solution would be to pass the initial state through Any hints on how to do this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think I found the problem. The state was read-only according to the compiler because the struct was |
Beta Was this translation helpful? Give feedback.
I think I found the problem. The state was read-only according to the compiler because the struct was
typedef'edconst. Removing that keyword creates a proper read-write state.