fix(sim): flight mode name incorrect in the simulator window title bar (#5854)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user