MAX_FSIZE moved to Horus max

dfu args adjusted for Horus
This commit is contained in:
3djc
2016-08-31 12:28:02 +02:00
parent 161f3be468
commit 03c969fa3c
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ QStringList getDfuArgs(const QString & cmd, const QString & filename)
burnConfigDialog bcd;
QString memory = "0x08000000";
if (cmd == "-U") {
memory.append(QString(":%1").arg(MAX_FSIZE));
if(GetCurrentFirmware()->getBoard() == BOARD_HORUS)
memory.append(QString(":%1").arg(MAX_FSIZE));
else
memory.append(QString(":%1").arg(512*1024));
}
args << bcd.getDFUArgs();
if (!filename.endsWith(".dfu")) {