mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Handle M17 in the display code.
This commit is contained in:
47
Display.cpp
47
Display.cpp
@@ -335,6 +335,40 @@ void CDisplay::clearNXDN()
|
||||
}
|
||||
}
|
||||
|
||||
void CDisplay::writeM17(const char* source, const char* dest, const char* type)
|
||||
{
|
||||
assert(source != NULL);
|
||||
assert(dest != NULL);
|
||||
assert(type != NULL);
|
||||
|
||||
m_timer1.start();
|
||||
m_mode1 = MODE_IDLE;
|
||||
|
||||
writeM17Int(source, dest, type);
|
||||
}
|
||||
|
||||
void CDisplay::writeM17RSSI(unsigned char rssi)
|
||||
{
|
||||
if (rssi != 0U)
|
||||
writeM17RSSIInt(rssi);
|
||||
}
|
||||
|
||||
void CDisplay::writeM17BER(float ber)
|
||||
{
|
||||
writeM17BERInt(ber);
|
||||
}
|
||||
|
||||
void CDisplay::clearM17()
|
||||
{
|
||||
if (m_timer1.hasExpired()) {
|
||||
clearM17Int();
|
||||
m_timer1.stop();
|
||||
m_mode1 = MODE_IDLE;
|
||||
} else {
|
||||
m_mode1 = MODE_M17;
|
||||
}
|
||||
}
|
||||
|
||||
void CDisplay::writePOCSAG(uint32_t ric, const std::string& message)
|
||||
{
|
||||
m_timer1.start();
|
||||
@@ -392,6 +426,11 @@ void CDisplay::clock(unsigned int ms)
|
||||
m_mode1 = MODE_IDLE;
|
||||
m_timer1.stop();
|
||||
break;
|
||||
case MODE_M17:
|
||||
clearM17Int();
|
||||
m_mode1 = MODE_IDLE;
|
||||
m_timer1.stop();
|
||||
break;
|
||||
case MODE_POCSAG:
|
||||
clearPOCSAGInt();
|
||||
m_mode1 = MODE_IDLE;
|
||||
@@ -482,6 +521,14 @@ void CDisplay::writeNXDNBERInt(float ber)
|
||||
{
|
||||
}
|
||||
|
||||
void CDisplay::writeM17RSSIInt(unsigned char rssi)
|
||||
{
|
||||
}
|
||||
|
||||
void CDisplay::writeM17BERInt(float ber)
|
||||
{
|
||||
}
|
||||
|
||||
int CDisplay::writeNXDNIntEx(const class CUserDBentry& source, bool group, unsigned int dest, const char* type)
|
||||
{
|
||||
/* return value definition is same as writeDMRIntEx() */
|
||||
|
||||
Reference in New Issue
Block a user