Bug: Error when passing pointer to structure containing enumerations into custom code
| Submitted | Product | Status | ||
|---|---|---|---|---|
| 2019-05-20 | Reactis for Simulink | Resolved in 2018.2.3 (released Jun 28, 2019; release notes) Resolved in 2018.0.5 (released Jun 28, 2019; release notes) | ||
|
If a Stateflow chart is calling a custom C code function, passing a pointer to a structure containing an enumerated type, Reactis produces the following error:
Error: Pointer data type mismatch
Cannot pass a pointer to a variable of type
data_def->{val: single, state: Enum:STATE}
into a function that expects a pointer to
{val: single, state: int }.
| ||||