mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
LCDproc: Make dimming the status screen optional
If you run another LCDproc client that doesn't dim the display when it displays its info, the display will effectively flash on and off (or dim/bright depending on your LCDd configuration) as it switches screens between MMDVMHost and the other client(s). Making the dimming optional and turning it off in the host stops this "annoyance".
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
class CLCDproc : public CDisplay
|
||||
{
|
||||
public:
|
||||
CLCDproc(std::string address, unsigned int port, unsigned int localPort, const std::string& callsign, unsigned int dmrid, bool displayClock, bool utc, bool duplex);
|
||||
CLCDproc(std::string address, unsigned int port, unsigned int localPort, const std::string& callsign, unsigned int dmrid, bool displayClock, bool utc, bool duplex, bool dimOnIdle);
|
||||
virtual ~CLCDproc();
|
||||
|
||||
virtual bool open();
|
||||
@@ -70,6 +70,7 @@ private:
|
||||
bool m_displayClock;
|
||||
bool m_utc;
|
||||
bool m_duplex;
|
||||
bool m_dimOnIdle;
|
||||
bool m_dmr;
|
||||
CTimer m_clockDisplayTimer;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user