Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # hack for dvb-utils / femon to print snr correctly when using ATSC cards.
- // begin hack //
- if (human_readable) {
- printf ("status %c%c%c%c%c | signal %3u%% | snr %.1f | ber %d | unc %d | ",
- fe_info.signal ? 'S' : ' ',
- fe_info.carrier ? 'C' : ' ',
- fe_info.viterbi ? 'V' : ' ',
- fe_info.sync ? 'Y' : ' ',
- fe_info.lock ? 'L' : ' ',
- (fe_info.signal_strength * 100 / 0xffff),
- (float)fe_info.snr/10 ,
- fe_info.ber,
- fe_info.ucblocks);
- } else {
- printf ("status %c%c%c%c%c | signal %04x | snr %04x | ber %d | unc %d | ",
- fe_info.signal ? 'S' : ' ',
- fe_info.carrier ? 'C' : ' ',
- fe_info.viterbi ? 'V' : ' ',
- fe_info.sync ? 'Y' : ' ',
- fe_info.lock ? 'L' : ' ',
- fe_info.signal_strength,
- fe_info.snr,
- fe_info.ber,
- fe_info.ucblocks);
- }
- // end hack //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement