mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Debugging D-Star.
This commit is contained in:
parent
00c15f116c
commit
9ccc86050a
4 changed files with 13 additions and 10 deletions
|
|
@ -215,6 +215,8 @@ void CDStarControl::writeModem(unsigned char *data)
|
|||
m_errs += errors;
|
||||
m_bits += 48U;
|
||||
|
||||
m_frames++;
|
||||
|
||||
unsigned int bits = matchSync(data + 1U);
|
||||
if (bits <= MAX_SYNC_BIT_ERRORS)
|
||||
m_n = 0U;
|
||||
|
|
@ -736,7 +738,7 @@ void CDStarControl::sendAck()
|
|||
if (m_network != NULL)
|
||||
m_network->getStatus(status, reflector);
|
||||
|
||||
char text[20U];
|
||||
char text[40U];
|
||||
if (status == LS_LINKED_DEXTRA || status == LS_LINKED_DPLUS || status == LS_LINKED_DCS || status == LS_LINKED_CCS || status == LS_LINKED_LOOPBACK)
|
||||
::sprintf(text, "%-8.8s BER: %.1f%% ", reflector, float(m_errs * 100U) / float(m_bits));
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue