Merge branch 'next' of https://github.com/opentx/opentx into next
This commit is contained in:
@@ -197,10 +197,8 @@ void FlashProcess::analyseStandardError(const QString &text)
|
|||||||
currStderrLine = currStderrLine.mid(nlPos+1);
|
currStderrLine = currStderrLine.mid(nlPos+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (text.contains("-E-") && !text.contains("-E- No receive file name")) {
|
if ((text.contains("-E-") && !text.contains("-E- No receive file name")) ||
|
||||||
hasErrors = true;
|
text.contains("No DFU capable USB device found")) {
|
||||||
}
|
|
||||||
if (text.contains("No DFU capable USB device found")) {
|
|
||||||
hasErrors = true;
|
hasErrors = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -221,12 +219,12 @@ void FlashProcess::onReadyReadStandardError()
|
|||||||
|
|
||||||
void FlashProcess::errorWizard()
|
void FlashProcess::errorWizard()
|
||||||
{
|
{
|
||||||
QString output=progress->getText(); // TODO = ui->plainTextEdit->toPlainText();
|
QString output = progress->getText();
|
||||||
|
|
||||||
if (output.contains("avrdude: Expected signature for")) { // wrong signature
|
if (output.contains("avrdude: Expected signature for")) { // wrong signature
|
||||||
int pos = output.indexOf("avrdude: Device signature = ");
|
int pos = output.indexOf("avrdude: Device signature = ");
|
||||||
bool fwexist = false;
|
bool fwexist = false;
|
||||||
QString DeviceStr="Unknown";
|
QString DeviceStr = tr("unknown");
|
||||||
QString FwStr = "";
|
QString FwStr = "";
|
||||||
|
|
||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
@@ -263,7 +261,8 @@ void FlashProcess::errorWizard()
|
|||||||
Firmware *firmware = GetCurrentFirmware();
|
Firmware *firmware = GetCurrentFirmware();
|
||||||
QMessageBox::warning(NULL, "Companion - Tip of the day", tr("Your radio uses a %1 CPU!!!\n\nPlease select an appropriate firmware type to program it.").arg(DeviceStr)+FwStr+tr("\nYou are currently using:\n %1").arg(firmware->getName()));
|
QMessageBox::warning(NULL, "Companion - Tip of the day", tr("Your radio uses a %1 CPU!!!\n\nPlease select an appropriate firmware type to program it.").arg(DeviceStr)+FwStr+tr("\nYou are currently using:\n %1").arg(firmware->getName()));
|
||||||
}
|
}
|
||||||
} else if (output.contains("No DFU capable USB device found")){
|
}
|
||||||
|
else if (output.contains("No DFU capable USB device found")){
|
||||||
#if defined WIN32 || !defined __GNUC__
|
#if defined WIN32 || !defined __GNUC__
|
||||||
QMessageBox::warning(NULL, "Companion - Tip of the day", tr("Your radio does not seem connected to USB or the driver is not installed!!!\n\nPlease use ZADIG to properly install the driver."));
|
QMessageBox::warning(NULL, "Companion - Tip of the day", tr("Your radio does not seem connected to USB or the driver is not installed!!!\n\nPlease use ZADIG to properly install the driver."));
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -1020,7 +1020,7 @@ QPushButton:checked {
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="myQDial" name="dial0">
|
<widget class="myQDial" name="pot0">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -1054,7 +1054,7 @@ QPushButton:checked {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="dialValue0">
|
<widget class="QLabel" name="potValue0">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">0 %</string>
|
<string notr="true">0 %</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -1077,7 +1077,7 @@ QPushButton:checked {
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="myQDial" name="dial1">
|
<widget class="myQDial" name="pot1">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -1114,7 +1114,7 @@ QPushButton:checked {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="6" column="0">
|
||||||
<widget class="QLabel" name="dialValue1">
|
<widget class="QLabel" name="potValue1">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">0 %</string>
|
<string notr="true">0 %</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -1137,7 +1137,7 @@ QPushButton:checked {
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="8" column="0">
|
||||||
<widget class="myQDial" name="dial2">
|
<widget class="myQDial" name="pot2">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -1171,7 +1171,7 @@ QPushButton:checked {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0">
|
<item row="9" column="0">
|
||||||
<widget class="QLabel" name="dialValue2">
|
<widget class="QLabel" name="potValue2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">0 %</string>
|
<string notr="true">0 %</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user