1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

[Companion] dfu-util launched with right args for Horus

This commit is contained in:
Bertrand Songis 2016-03-17 20:45:11 +01:00
parent de08e50f15
commit a2db3f2150

View file

@ -68,7 +68,7 @@ QStringList getDfuArgs(const QString &cmd, const QString &filename)
if (cmd == "-U") {
memory.append(QString(":%1").arg(MAX_FSIZE));
}
arguments << bcd.getDFUArgs() << "--dfuse-address" << memory << "-d" << "0483:df11";
arguments << bcd.getDFUArgs() << "--dfuse-address" << memory; // removed for Horus, is it really needed? << "-d" << "0483:df11";
QString fullcmd = cmd + filename;
arguments << "" << fullcmd;
@ -149,7 +149,7 @@ QStringList getWriteFirmwareArgs(const QString &filename)
QStringList getReadFirmwareArgs(const QString &filename)
{
EEPROMInterface *eepromInterface = GetEepromInterface();
if (IS_TARANIS(eepromInterface->getBoard())) {
if (IS_STM32(eepromInterface->getBoard())) {
return getDfuArgs("-U", filename);
}
else if (eepromInterface->getBoard() == BOARD_SKY9X) {