Commit aa446903 authored by Patrick José Pereira's avatar Patrick José Pereira

QGCSerialPortInfo: Add const in canFlash function

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 27a70b81
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment