Update the display code for P25.

This commit is contained in:
Jonathan Naylor
2016-09-12 18:12:32 +01:00
parent 3079c9faf2
commit e2ec5292b5
12 changed files with 241 additions and 0 deletions

View File

@@ -155,6 +155,29 @@ void CDisplay::clearFusion()
}
}
void CDisplay::writeP25(const char* source, bool group, const char* dest, const char* type)
{
assert(source != NULL);
assert(dest != NULL);
assert(type != NULL);
m_timer1.start();
m_mode1 = MODE_IDLE;
writeP25Int(source, group, dest, type);
}
void CDisplay::clearP25()
{
if (m_timer1.hasExpired()) {
clearP25Int();
m_timer1.stop();
m_mode1 = MODE_IDLE;
} else {
m_mode1 = MODE_P25;
}
}
void CDisplay::clock(unsigned int ms)
{
m_timer1.clock(ms);
@@ -175,6 +198,11 @@ void CDisplay::clock(unsigned int ms)
m_mode1 = MODE_IDLE;
m_timer1.stop();
break;
case MODE_P25:
clearP25Int();
m_mode1 = MODE_IDLE;
m_timer1.stop();
break;
default:
break;
}