From 85f2f9f83c2b0a60bb30ef146cd81d1624c4bb9d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 23 Jan 2012 20:52:11 +0400 Subject: [PATCH] nit: ifdef DEBUG_NIT_UNUSED for dumping unhandled descriptors --- src/zapit/src/scannit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/scannit.cpp b/src/zapit/src/scannit.cpp index d7ccbacd4..b8162c044 100644 --- a/src/zapit/src/scannit.cpp +++ b/src/zapit/src/scannit.cpp @@ -27,6 +27,7 @@ #include #define DEBUG_NIT +//#define DEBUG_NIT_UNUSED CNit::CNit(t_satellite_position spos, freq_id_t frq, unsigned short pnid, int dnum) { @@ -189,7 +190,7 @@ bool CNit::Parse() default: { -#ifdef DEBUG_NIT +#ifdef DEBUG_NIT_UNUSED printf("NIT: descriptor %02x: ", d->getTag()); uint8_t len = 2+d->getLength(); uint8_t buf[len]; @@ -223,6 +224,7 @@ bool CNit::ParseSatelliteDescriptor(SatelliteDeliverySystemDescriptor * sd, Tran if(satellitePosition != newSat) { printf("NIT: different satellite position: our %d nit %d\n", satellitePosition, sd->getOrbitalPosition()); + return false; } uint8_t polarization = sd->getPolarization();