mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 21:05:26 +03:00
comparedialog - compare curves and special functions
This commit is contained in:
parent
27ee3e3ab4
commit
6e0eec364c
5 changed files with 184 additions and 90 deletions
|
@ -797,12 +797,12 @@ QString getTimerStr(TimerData & timer)
|
|||
return result;
|
||||
}
|
||||
|
||||
QString getProtocol(ModelData * g_model)
|
||||
QString getProtocol(ModuleData & module)
|
||||
{
|
||||
QString str = getProtocolStr(g_model->moduleData[0].protocol);
|
||||
QString str = getProtocolStr(module.protocol);
|
||||
|
||||
if (g_model->moduleData[0].protocol == PPM)
|
||||
str.append(QObject::tr(": %1 Channels, %2usec Delay").arg(g_model->moduleData[0].channelsCount).arg(g_model->moduleData[0].ppmDelay));
|
||||
if (module.protocol == PPM)
|
||||
str.append(QObject::tr(": %1 Channels, %2usec Delay, Pulse polarity %3").arg(module.channelsCount).arg(module.ppmDelay).arg(module.polarityToString()));
|
||||
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue