diff --git a/src/comm/QGCSerialPortInfo.cc b/src/comm/QGCSerialPortInfo.cc index 18188356e38a38de7bbc101e77187b0f9756acf1..eff879c0510c2a98dd6112254b4ec1799dd1af1e 100644 --- a/src/comm/QGCSerialPortInfo.cc +++ b/src/comm/QGCSerialPortInfo.cc @@ -340,7 +340,7 @@ bool QGCSerialPortInfo::isSystemPort(QSerialPortInfo* port) return false; } -bool QGCSerialPortInfo::canFlash(void) +bool QGCSerialPortInfo::canFlash(void) const { BoardType_t boardType; QString name; diff --git a/src/comm/QGCSerialPortInfo.h b/src/comm/QGCSerialPortInfo.h index 7c394bce83b6d517d37e2491c9e282864981a8f9..3accd3d5dfa5f751c7d9f32f0f6a6cfc4f5336c2 100644 --- a/src/comm/QGCSerialPortInfo.h +++ b/src/comm/QGCSerialPortInfo.h @@ -43,7 +43,7 @@ public: bool getBoardInfo(BoardType_t& boardType, QString& name) const; /// @return true: we can flash this board type - bool canFlash(void); + bool canFlash(void) const; /// @return true: Board is currently in bootloader bool isBootloader(void) const;