|
|
|
@ -69,7 +69,7 @@ public slots:
@@ -69,7 +69,7 @@ public slots:
|
|
|
|
|
void erase(void); |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
void foundBoard(const QString portname, QString portDescription); |
|
|
|
|
void foundBoard(bool firstTry, const QString portname, QString portDescription); |
|
|
|
|
void foundBootloader(int bootloaderVersion, int boardID, int flashSize); |
|
|
|
|
void bootloaderSyncFailed(void); |
|
|
|
|
void error(const int command, const QString errorString); |
|
|
|
@ -91,6 +91,7 @@ private:
@@ -91,6 +91,7 @@ private:
|
|
|
|
|
QTime _elapsed; |
|
|
|
|
QString _portName; |
|
|
|
|
static const int _retryTimeout = 1000; |
|
|
|
|
bool _findBoardFirstAttempt; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/// @brief Provides methods to interact with the bootloader. The commands themselves are signalled
|
|
|
|
@ -129,9 +130,10 @@ public:
@@ -129,9 +130,10 @@ public:
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
/// @brief Emitted by the findBoard process when it finds the board.
|
|
|
|
|
/// @param firstTry true: board found on first attempt
|
|
|
|
|
/// @param portName Port that board is on
|
|
|
|
|
/// @param portDescription User friendly port description
|
|
|
|
|
void foundBoard(const QString portname, QString portDescription); |
|
|
|
|
void foundBoard(bool firstTry, const QString portname, QString portDescription); |
|
|
|
|
|
|
|
|
|
/// @brief Emitted by the findBootloader process when has a connection to the bootloader
|
|
|
|
|
void foundBootloader(int bootloaderVersion, int boardID, int flashSize); |
|
|
|
@ -164,7 +166,7 @@ signals:
@@ -164,7 +166,7 @@ signals:
|
|
|
|
|
void _cancelFindOnThread(void); |
|
|
|
|
|
|
|
|
|
private slots: |
|
|
|
|
void _foundBoard(const QString portname, QString portDescription); |
|
|
|
|
void _foundBoard(bool firstTry, const QString portname, QString portDescription); |
|
|
|
|
void _foundBootloader(int bootloaderVersion, int boardID, int flashSize); |
|
|
|
|
void _bootloaderSyncFailed(void); |
|
|
|
|
void _error(const int errorCommand, const QString errorString) { emit error(errorCommand, errorString); } |
|
|
|
|