mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +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
|
||||
{
|
||||
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();
|
||||
std::string active_simulator_name() const;
|
||||
void run();
|
||||
void stop();
|
||||
|
||||
Reference in New Issue
Block a user