mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-12-23 02:15:35 -05:00
Simplify the network transmission.
This commit is contained in:
parent
44ea7c0dff
commit
168cdbeec7
@ -30,17 +30,6 @@
|
||||
|
||||
const unsigned int SRC_ID = 10999U;
|
||||
|
||||
const unsigned char STARTICW[] = {
|
||||
0x00U, 0x02U, 0x02U, 0x0CU, 0x0BU, 0x35U, 0xA3U, 0x00U, 0x00U, 0x00U };
|
||||
|
||||
const unsigned char VHDR1[] = {
|
||||
0x60U, 0x02U, 0x02U, 0x0CU, 0x0BU, 0x35U, 0xA3U, 0x1AU, 0x65U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U,
|
||||
0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x08U, 0x00U, 0x00U, 0x00U, 0x00U, 0x02U, 0x2EU };
|
||||
|
||||
const unsigned char VHDR2[] = {
|
||||
0x61U, 0x1DU, 0x35U, 0x34U, 0x37U, 0x0AU, 0x22U, 0x35U, 0x3EU, 0x00U, 0x10U, 0x02U, 0x11U, 0x28U, 0x1DU, 0x21U,
|
||||
0x03U, 0x1BU, 0x00U, 0x35U, 0x23U, 0x02U };
|
||||
|
||||
const unsigned char REC62[] = {
|
||||
0x62U, 0x02U, 0x02U, 0x0CU, 0x0BU, 0x35U, 0xA3U, 0x1AU, 0x65U, 0x80U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U,
|
||||
0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x02U };
|
||||
@ -126,9 +115,6 @@ void CSpeech::clock(unsigned int ms)
|
||||
m_timer.stop();
|
||||
m_pos = 0U;
|
||||
m_n = 0x62U;
|
||||
m_network.writeData(STARTICW, 10U, m_address, m_port);
|
||||
m_network.writeData(VHDR1, 30U, m_address, m_port);
|
||||
m_network.writeData(VHDR2, 22U, m_address, m_port);
|
||||
} else {
|
||||
m_state = SS_NONE;
|
||||
m_timer.stop();
|
||||
|
Loading…
Reference in New Issue
Block a user