Use existing getStringAtIndex as considers length

This commit is contained in:
Peter Feerick
2022-03-21 11:48:51 +01:00
committed by Raphael Coeffic
parent 21f776d40c
commit 19b1db7275
3 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -607,7 +607,8 @@ class ModuleWindow : public FormGroup {
});
if (moduleIdx == INTERNAL_MODULE && isModuleCrossfire(moduleIdx)) {
new StaticText(this, grid.getFieldSlot(2, 1), getStringAtIndex(STR_CRSF_BAUDRATE, CROSSFIRE_STORE_TO_INDEX(g_eeGeneral.internalModuleBaudrate)), 0,COLOR_THEME_PRIMARY1);
char buf[6];
new StaticText(this, grid.getFieldSlot(2, 1), getStringAtIndex(buf, STR_CRSF_BAUDRATE, CROSSFIRE_STORE_TO_INDEX(g_eeGeneral.internalModuleBaudrate)), 0,COLOR_THEME_PRIMARY1);
}
// Module parameters