Skip to content

variable types float, int and double generate the wrong code for labels (in screens.c) #825

@Kortenbach

Description

@Kortenbach

Describe the bug
A clear and concise description of what the bug is.
The variable types float, int and double generate the wrong code for a label (char*) in screens.c and compilation fails

To Reproduce
Steps to reproduce the behavior:

  1. Define a variable and a label
  2. Set the variable type to "real" or "double" (integer works fine btw)
  3. Assign the variable to the label
  4. Generate the code
  5. Try to compile
  6. Compiler errors in screens.c (code is generated for char* types instead of float / double

Expected behavior
screens.c contains code to handle float or double instead of char*

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • 11

** LVGL version (if used)**

  • 9.3

Additional context
integer values would be fine, but don't know how to add decimal point, So need to use real.

Disclaimer
Please take into account that the tasks reported here will be processed by the Envox team according to the best effort principle, so adjust your expectations accordingly. However, if you want a more prompt and high-quality response as well as direct contact with technical support, you can choose one of our Support plans.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions