Add aux. function isSerialOpen().

This commit is contained in:
Gerhard Hoffmann 2023-07-06 14:25:36 +02:00
parent a0d0de19c5
commit faae8b8d9a

View File

@ -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();