- Timestamp:
- 10/30/17 21:51:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/frontenddev.h
r41076 r41077 1384 1384 #if DVB_API_VERSION > 5 || DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 10 1385 1385 1386 int test1 = 0; 1387 int test2 = 0; 1386 1388 struct dtv_property prop[1]; 1387 1389 prop[0].cmd = DTV_STAT_CNR; … … 1398 1400 for(unsigned int i=0; i<prop[0].u.st.len; i++) 1399 1401 { 1400 if (prop[0].u.st.stat[i].scale == FE_SCALE_DECIBEL) 1402 if (prop[0].u.st.stat[i].scale == FE_SCALE_DECIBEL && test1 == 0) 1403 { 1404 test1 = 1; 1401 1405 signalqualitydb = prop[0].u.st.stat[i].svalue / 10; 1402 else if (prop[0].u.st.stat[i].scale == FE_SCALE_RELATIVE) 1406 printf("***** new snr signalqualitydb:%d\n", signalqualitydb); 1407 } 1408 else if (prop[0].u.st.stat[i].scale == FE_SCALE_RELATIVE && test2 == 0) 1409 { 1410 test2 = 1; 1403 1411 signalquality = prop[0].u.st.stat[i].svalue; 1412 printf("***** new snr signalquality:%d\n", signalquality); 1413 } 1404 1414 } 1405 1415 }
Note: See TracChangeset
for help on using the changeset viewer.