Add firmware update tools location for FreeBSD (#4688)

Add paths for avrdude and dfu-util programs under FreeBSD. SAM-BA does
not exist yet in the FreeBSD port collection.
This commit is contained in:
Thibault Jouan
2017-03-26 20:07:35 +02:00
committed by Bertrand Songis
parent 1d21309935
commit 36a6ba24b8
+5
View File
@@ -125,6 +125,11 @@ void burnConfigDialog::getSettings()
sambaLoc = "/usr/local/bin/sam-ba";
if ( dfuLoc.isEmpty())
dfuLoc = QFileInfo(QApplication::applicationDirPath() + "/../Resources/dfu-util").absoluteFilePath();
#elif defined __FreeBSD__
if (avrLoc.isEmpty())
avrLoc = "/usr/local/bin/avrdude";
if (dfuLoc.isEmpty())
dfuLoc = "/usr/local/bin/dfu-util";
#else
if ( avrLoc.isEmpty())
avrLoc = "/usr/bin/avrdude";