TouchGFX 4.21.1; Unicode; Wildecard; Simulator works, Target fails.
I am trying to pass text into the wildcard of a text:
---
// Container definition
DatenpunktFeldWert datenpunktFeldWertSchweissZeitSoll;
---
datenpunktFeldWertSchweissZeitSoll.setWertStr((touchgfx::Unicode::UnicodeChar*)L"23.4 s");
---
/*
* Wildcard Buffers
*/
static const uint16_t WERT_SIZE = 15;
touchgfx::Unicode::UnicodeChar WertBuffer[WERT_SIZE];
---
void DatenpunktFeldWert::setWertStr(touchgfx::Unicode::UnicodeChar* wertStr)
{
touchgfx::Unicode::snprintf(WertBuffer, WERT_SIZE, "%s", wertStr);
Wert.invalidate();
}
---
In Simulator this works perfectly:
However, only the 1st character is always shown on the display of the target.
What am I doing wrong?
