From 7f40a54b392e43708c6c7e2afb01498732653fda Mon Sep 17 00:00:00 2001 From: rjkm Date: Fri, 20 Aug 2021 14:28:28 +0200 Subject: [PATCH] standard is 1 for DVB-S, 0 or 2 otherwise --- apps/ddinfo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/ddinfo.c b/apps/ddinfo.c index c8bb6f0..e654365 100644 --- a/apps/ddinfo.c +++ b/apps/ddinfo.c @@ -249,8 +249,9 @@ void print_info(struct mci_result *res, uint8_t demod) printf("\nDemod %u:\n", demod); if (res->status == MCI_DEMOD_LOCKED) { switch (res->mode) { + case 0: case M4_MODE_DVBSX: - if (res->dvbs2_signal_info.standard == 2) { + if (res->dvbs2_signal_info.standard != 1) { int short_frame = 0, pilots = 0; char *modcod = "unknown"; uint8_t pls = res->dvbs2_signal_info.pls_code; @@ -274,13 +275,14 @@ void print_info(struct mci_result *res, uint8_t demod) } printf("Roll-Off: %s\n", Rolloff[res->dvbs2_signal_info.roll_off & 7]); printf("Pilots: %s\n", pilots ? "On" : "Off"); - printf("Frame: %s\n", short_frame ? "Short" : "Long"); + printf("Frame: %s\n", short_frame ? "Short" : "Normal"); } else { printf("Demod Locked: DVB-S\n"); printf("PR: %s\n", PunctureRates[res->dvbs2_signal_info.pls_code & 0x07]); } printf("Inversion: %s\n", (res->dvbs2_signal_info.roll_off & 0x80) ? "on": "off"); + break; case M4_MODE_DVBT: printf("Locked DVB-T\n"); break;