Changeset 41162 for titan


Ignore:
Timestamp:
11/11/17 16:35:19 (6 years ago)
Author:
gost
Message:

[titan] fix workaround for signal = 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r41160 r41162  
    292292                        {
    293293                                if(flag != 1) debug(200, "clear tuner %s", dvbnode->feshortname);
     294                                dvbnode->felasttransponder = dvbnode->feakttransponder;
    294295                                dvbnode->feakttransponder = NULL;
    295296                        }       
     
    635636                                        while(CharPtrTmp[found] != NULL)
    636637                                        {
    637                                                 if(CharPtrTmp[found]->feaktband != band && (CharPtrTmp[found]->felock != 0 || (flag >= 2 && CharPtrTmp[found]->felock == 0)))   
     638                                                if(CharPtrTmp[found]->feakttransponder != NULL && CharPtrTmp[found]->feaktband != band && (CharPtrTmp[found]->felock != 0 || (flag >= 2 && CharPtrTmp[found]->felock == 0)))   
    638639                                                {
    639640                                                        found = 99;
    640641                                                        break;
    641642                                                }
     643                                                found = found + 1;
    642644                                        }
    643645                                        if(found == 99)
     
    15961598                {
    15971599                        if (prop[0].u.st.stat[i].scale == FE_SCALE_RELATIVE)
    1598                         {
    15991600                                signal = prop[0].u.st.stat[i].uvalue;
    1600                                 printf("*************** signal %d\n", signal);
    1601                         }
    16021601                }
    16031602        }
     
    16171616                debug(200, "frontend signal = %02x", (signal * 100) / 0xffff);
    16181617        }
    1619         if(signal == 0)
    1620         {
    1621                 fe_status_t status = fereadstatus(node);
    1622                 if(status & FE_HAS_LOCK) signal = 65535;
    1623         }       
    1624         printf("+++++++++++++++ signal %d\n", signal);
     1618        if(signal == 0)
     1619        {
     1620                fe_status_t status = fereadstatus(node);
     1621                if(status & FE_HAS_LOCK) signal = 65535;
     1622        }       
    16251623        return signal;
    16261624}
Note: See TracChangeset for help on using the changeset viewer.