Add aux. function isSerialOpen().
This commit is contained in:
parent
a0d0de19c5
commit
faae8b8d9a
@ -361,9 +361,14 @@ bool Update::openSerial(int br, QString baudrate, QString comPort) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Update::closeSerial() const {
|
void Update::closeSerial() const {
|
||||||
|
qInfo() << "CLOSED SERIAL" << m_baudrate << m_serialInterface;
|
||||||
m_hw->dc_closeSerial();
|
m_hw->dc_closeSerial();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Update::isSerialOpen() const {
|
||||||
|
return m_hw->dc_isPortOpen();
|
||||||
|
}
|
||||||
|
|
||||||
bool Update::resetDeviceController() const {
|
bool Update::resetDeviceController() const {
|
||||||
qDebug() << "resetting device controller...";
|
qDebug() << "resetting device controller...";
|
||||||
m_hw->bl_rebootDC();
|
m_hw->bl_rebootDC();
|
||||||
|
Loading…
Reference in New Issue
Block a user