Bundle and use avrdude.conf on OS X (closes #5050) (#5127)

This commit is contained in:
Arne Schwabe
2017-08-04 12:19:27 +02:00
committed by Andre Bernet
parent 541aa459cf
commit bd968bd60f
3 changed files with 18 additions and 1 deletions
+12
View File
@@ -105,6 +105,18 @@ burnConfigDialog::~burnConfigDialog()
delete ui;
}
QStringList burnConfigDialog::getAvrdudeArgs()
{
QStringList args = avrArgs;
if (!avrPort.isEmpty())
args << "-P" << avrPort;
#if defined(__APPLE__)
args << "-C" << QFileInfo(QApplication::applicationDirPath() + "/../Resources/avrdude.conf").absoluteFilePath();
#endif
return args;
}
void burnConfigDialog::getSettings()
{
avrLoc = g.avrdudeLocation();