mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
b uart closing on destruction
This commit is contained in:
@@ -39,6 +39,12 @@ Simulators::Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Simulators::~Simulators()
|
||||||
|
{
|
||||||
|
if (m_serial->isOpen())
|
||||||
|
m_serial->close();
|
||||||
|
}
|
||||||
|
|
||||||
std::string Simulators::active_simulator_name() const
|
std::string Simulators::active_simulator_name() const
|
||||||
{
|
{
|
||||||
return this->m_current_simulator;
|
return this->m_current_simulator;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class Simulators : public QObject
|
|||||||
};
|
};
|
||||||
|
|
||||||
Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject *parent = nullptr);
|
Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject *parent = nullptr);
|
||||||
|
~Simulators();
|
||||||
std::string active_simulator_name() const;
|
std::string active_simulator_name() const;
|
||||||
void run();
|
void run();
|
||||||
void stop();
|
void stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user