Open Luke-Shepp opened 2 months ago
You are not using EEZ Flow, so conversion of variable types, in this case float
to string
(const char *
in C) will not be done in generated code. That means, variable speed
in your case must be of type string
not float
as Label widget is expecting string. But, we can say this is bug since there is no error reported for this case. Also, we should consider to put type conversion code in generated code in this case even if EEZ Flow is not used.
My generated screens.c looks something like this;
get_var_speed
is defined in the generatedvars.h
as:That is because I have chosen it to be a float value in the UI:
Due to the type mismatch, the error on build is:
There's another warning for another variable, but it's not a hard error this one: