fix(sim): flight mode name incorrect in the simulator window title bar (#5854)

This commit is contained in:
philmoz
2025-02-03 09:38:07 +10:00
committed by GitHub
parent 615f966bc2
commit b4a7960696
5 changed files with 27 additions and 91 deletions
+2 -2
View File
@@ -876,8 +876,8 @@ uint8_t OpenTxSimulator::getStickMode()
const char * OpenTxSimulator::getPhaseName(unsigned int phase)
{
static char buff[sizeof(g_model.flightModeData[0].name)+1];
zchar2str(buff, g_model.flightModeData[phase].name, sizeof(g_model.flightModeData[0].name));
static char buff[LEN_FLIGHT_MODE_NAME+1];
strAppend(buff, g_model.flightModeData[phase].name, LEN_FLIGHT_MODE_NAME);
return buff;
}