1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

standard is 1 for DVB-S, 0 or 2 otherwise

This commit is contained in:
rjkm 2021-08-20 14:28:28 +02:00
parent 1518ba54a4
commit 7f40a54b39

View File

@ -249,8 +249,9 @@ void print_info(struct mci_result *res, uint8_t demod)
printf("\nDemod %u:\n", demod); printf("\nDemod %u:\n", demod);
if (res->status == MCI_DEMOD_LOCKED) { if (res->status == MCI_DEMOD_LOCKED) {
switch (res->mode) { switch (res->mode) {
case 0:
case M4_MODE_DVBSX: case M4_MODE_DVBSX:
if (res->dvbs2_signal_info.standard == 2) { if (res->dvbs2_signal_info.standard != 1) {
int short_frame = 0, pilots = 0; int short_frame = 0, pilots = 0;
char *modcod = "unknown"; char *modcod = "unknown";
uint8_t pls = res->dvbs2_signal_info.pls_code; 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("Roll-Off: %s\n", Rolloff[res->dvbs2_signal_info.roll_off & 7]);
printf("Pilots: %s\n", pilots ? "On" : "Off"); printf("Pilots: %s\n", pilots ? "On" : "Off");
printf("Frame: %s\n", short_frame ? "Short" : "Long"); printf("Frame: %s\n", short_frame ? "Short" : "Normal");
} else { } else {
printf("Demod Locked: DVB-S\n"); printf("Demod Locked: DVB-S\n");
printf("PR: %s\n", printf("PR: %s\n",
PunctureRates[res->dvbs2_signal_info.pls_code & 0x07]); PunctureRates[res->dvbs2_signal_info.pls_code & 0x07]);
} }
printf("Inversion: %s\n", (res->dvbs2_signal_info.roll_off & 0x80) ? "on": "off"); printf("Inversion: %s\n", (res->dvbs2_signal_info.roll_off & 0x80) ? "on": "off");
break;
case M4_MODE_DVBT: case M4_MODE_DVBT:
printf("Locked DVB-T\n"); printf("Locked DVB-T\n");
break; break;