Skip to main content
Yunus ARI
Senior
Oct 4, 2019 7:03 AM UTC
Solved

Scroll Wheel give error in custom container.

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.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Oct 4, 2019 1:26 PM UTC

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

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Oct 4, 2019 1:26 PM UTC

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
Oct 7, 2019 10:44 AM UTC

Hi @Martin KJELDSEN​ 

Thank you for information.

Martin KJELDSEN
Principal III
Oct 7, 2019 11:12 AM UTC

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

/Martin