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
+1 -1
View File
@@ -19,7 +19,7 @@
#include <QImage>
#include <QByteArray>
#define MAX_FSIZE (GetCurrentFirmware()->getBoard() == BOARD_HORUS) ? (2048*1024) : (512*1024)
#define MAX_FSIZE (2048*1024)
#define SPLASH_WIDTH (128)
#define SPLASH_HEIGHT (64)
#define SPLASHX9D_WIDTH (212)
+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")) {