Solved! Go to Solution.
Thanks for your helps!
I defined all enums outside the struct and now all works!
Thanks for your helps!
I defined all enums outside the struct and now all works!
Hello
I assume you are using CodeWarrior for HC12 V4.5. Am I right?
Basically the constants NUMBER, TEXT_1 and TEXT_2 are defined in type view_tab_t. They do not have global scope and are not available outside of a variable of type view_tab_t.
If you wish to test against that constant you have to write:
if (viewTab.para_view == viewTab.TEXT_2) {
where viewTab is defined as
view_tab_t viewTab;
Another alternative to to define the enumerated type and its constant outside of the structured type view_tab_t.
CrasyCat