mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-24 09:35:40 +08:00
Add Config option to dim Nextion display in idle
state
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
class CNextion : public CDisplay
|
||||
{
|
||||
public:
|
||||
CNextion(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness, bool displayClock, bool utc, const std::string& dateformat);
|
||||
CNextion(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness, bool displayClock, bool utc, const std::string& dateformat, bool dimOnIdle);
|
||||
virtual ~CNextion();
|
||||
|
||||
virtual bool open();
|
||||
@@ -61,6 +61,7 @@ private:
|
||||
bool m_displayClock;
|
||||
bool m_utc;
|
||||
std::string m_dateformat;
|
||||
bool m_dimOnIdle;
|
||||
CTimer m_clockDisplayTimer;
|
||||
|
||||
void sendCommand(const char* command);
|
||||
|
||||
Reference in New Issue
Block a user