Companion failsafe fix (#7705)

Companion failsafe fix
This commit is contained in:
Bertrand Songis
2020-06-08 10:46:16 +02:00
committed by GitHub
parent 6609481c23
commit 31d734d14a
7 changed files with 70 additions and 38 deletions
+2 -3
View File
@@ -897,9 +897,8 @@ QString ModelPrinter::printFailsafe(int idx)
ModuleData module = model.moduleData[idx];
strl << printLabelValue(tr("Failsafe Mode"), printFailsafeMode(module.failsafeMode));
if (module.failsafeMode == FAILSAFE_CUSTOM) {
for (int i=0; i<module.channelsCount; i++) {
//strl << QString("%1(%2)").arg(printChannelName(module.channelsStart + i).trimmed()).arg(printFailsafeValue(module.failsafeChannels[i]));
strl << printLabelValue(printChannelName(module.channelsStart + i).trimmed(), printFailsafeValue(module.failsafeChannels[i]));
for (int i = 0; i < module.channelsCount; i++) {
strl << printLabelValue(printChannelName(module.channelsStart + i).trimmed(), printFailsafeValue(model.limitData[i].failsafe));
}
}
return strl.join(" ");