mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
leddevice refactoring. code style and extension of baseclass to avoid dups (#174)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
///
|
||||
/// The LedRs232Device implements an abstract base-class for LedDevices using a RS232-device.
|
||||
///
|
||||
class LedRs232Device : public QObject, public LedDevice
|
||||
class LedRs232Device : public LedDevice
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -49,6 +49,7 @@ private slots:
|
||||
/// Unblock the device after a connection delay
|
||||
void unblockAfterDelay();
|
||||
void error(QSerialPort::SerialPortError error);
|
||||
|
||||
private:
|
||||
// tries to open device if not opened
|
||||
bool tryOpen();
|
||||
|
||||
Reference in New Issue
Block a user