Skip to main content
Yunus ARI
Senior
October 4, 2019
Solved

Scroll Wheel give error in custom container.

  • October 4, 2019
  • 2 replies
  • 808 views

I am trying to design a custom container which has a scroll well. This scroll wheel item template has a wildcard. When I add a Scroll Wheel and generate code, compiler generates same variables three time in CustomContainerBase.hpp file. Like below;

 
 /*
 * Wildcard Buffers
 */
 static const uint16_t ELEMENTTEXT_SIZE = 5;
 touchgfx::Unicode::UnicodeChar ElementTextBuffer[ELEMENTTEXT_SIZE];
 static const uint16_t ELEMENTTEXT_SIZE = 5;
 touchgfx::Unicode::UnicodeChar ElementTextBuffer[ELEMENTTEXT_SIZE];
 static const uint16_t ELEMENTTEXT_SIZE = 5;
 touchgfx::Unicode::UnicodeChar ElementTextBuffer[ELEMENTTEXT_SIZE];

Because of that, compailer give error and I can't fix it. What can I do about that?

Thank you for help.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi @Yunus Arı​,

This has been fixed in a later version that we'll be able to release when CubeMX 5.4 comes out (anytime now).

/Martin

2 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
October 4, 2019

Hi @Yunus Arı​,

This has been fixed in a later version that we'll be able to release when CubeMX 5.4 comes out (anytime now).

/Martin

Yunus ARI
Yunus ARIAuthor
Senior
October 7, 2019

Hi @Martin KJELDSEN​ 

Thank you for information.

Martin KJELDSEN
Principal III
October 7, 2019

You're welcome! 4.12.3 is right around the corner.

/Martin