Cleanup lost byte code

pull/2/head
Philip Heron 2010-04-23 23:12:40 +01:00
rodzic 46066ead87
commit 928ffea2b8
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -195,6 +195,8 @@ void rtty::restart()
poscnt = negcnt = 0;
posfreq = negfreq = 0.0;
bytelen = (1 + nbits + stl) * symbollen;
metric = 0.0;
snprintf(msg1, sizeof(msg1), "%-4.1f / %-4.0f", rtty_baud, rtty_shift);
@ -389,7 +391,8 @@ bool rtty::rx(bool bit)
c = decode_char();
if ( c != 0 ) put_rx_char(c);
lb = lost / symbollen / (1 + nbits + (rtty_parity != RTTY_PARITY_NONE ? 0 : 1)) - 1;
/* lb = estimated bytes lost */
lb = (lost - bytelen / 2) / bytelen;
put_rx_ssdv(c, lb);
}
flag = true;

Wyświetl plik

@ -72,6 +72,7 @@ private:
double shift;
int symbollen;
int bytelen;
int nbits;
// RTTY_PARITY parity;
int stoplen;