Fix DMR status display for duplex mode

Previous change (simplyfy DMR status display) did not consider
DMR duplex mode.

Now DMR simplex mode uses 2-lines style, duplex mode 4-lines like this.

	Listening
	TS1
	N Callsign
	TS2 TGxx

For this change, statusLine() no longer have meaning.
It will be removed in the future.
This commit is contained in:
SASANO Takayoshi
2020-02-29 06:51:26 +09:00
parent ead41ba9a5
commit 0bc6bcdb26
3 changed files with 29 additions and 10 deletions

View File

@@ -29,7 +29,7 @@
class CTFTSurenoo : public CDisplay
{
public:
CTFTSurenoo(const std::string& callsign, unsigned int dmrid, ISerialPort* serial, unsigned int brightness);
CTFTSurenoo(const std::string& callsign, unsigned int dmrid, ISerialPort* serial, unsigned int brightness, bool duplex);
virtual ~CTFTSurenoo();
virtual bool open();
@@ -71,6 +71,7 @@ private:
ISerialPort* m_serial;
unsigned int m_brightness;
unsigned char m_mode;
bool m_duplex;
bool m_refresh;
CTimer m_refreshTimer;
char* m_lineBuf;