Changeset 41059 for titan


Ignore:
Timestamp:
10/28/17 12:00:39 (6 years ago)
Author:
gost
Message:

[titan] fix loop tuner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r41054 r41059  
    324324                        continue;
    325325                }
    326 
    327326                if(dvbnode->type == FRONTENDDEV && dvbnode->feinfo->type == tpnode->fetype && dvbnode->felock == 0)
    328327                {
     
    332331                                continue;
    333332                        }
    334 
    335                         found = 0;
    336333                        //check if tuner is main tuner
    337334                        if(getconfig(dvbnode->feshortname, NULL) != NULL)
     
    340337                                continue;                               
    341338                        }
     339                        found = 0;
    342340                        //check if tuner is loop and looptuner is locked
    343341                        tmpstr = getconfigbyval(dvbnode->feshortname, NULL);
     342                        CharPtrTmp[0] = NULL;
    344343                        while(tmpstr != NULL) //found loop tuner
    345344                        {
     
    348347                                if(tmpdvbnode != NULL && tmpdvbnode->feakttransponder != NULL && (tmpdvbnode->feaktpolarization != tpnode->polarization || tmpdvbnode->feakttransponder->orbitalpos != tpnode->orbitalpos) && (tmpdvbnode->felock != 0 || (flag == 2 && tmpdvbnode->felock == 0)))
    349348                                {
    350                                         found = 0;
     349                                        found = -1;
    351350                                        break;
    352351                                }
     
    360359                        CharPtrTmp[found] = NULL;
    361360                               
    362                         if(found == 0)
     361                        if(found == -1)
    363362                        {
    364363                                dvbnode = dvbnode->next;
     
    473472                                if(tmpdvbnode != NULL && tmpdvbnode->feakttransponder != NULL && (tmpdvbnode->feaktpolarization != tpnode->polarization || tmpdvbnode->feakttransponder->orbitalpos != tpnode->orbitalpos) && (tmpdvbnode->felock != 0 || (flag == 2 && tmpdvbnode->felock == 0)))
    474473                                {
    475                                         found = 0;
     474                                        found = -1;
    476475                                        break;
    477476                                }
     
    483482                                tmpstr = getconfigbyval(tmpstr, NULL); //loop tuner also loop  ?
    484483                        }
    485                         if(found == 0)
     484                        if(found == -1)
    486485                        {
    487486                                dvbnode = dvbnode->next;
     
    496495                                if(tmpdvbnode != NULL && tmpdvbnode->feakttransponder != NULL && (tmpdvbnode->feaktpolarization != tpnode->polarization || tmpdvbnode->feakttransponder->orbitalpos != tpnode->orbitalpos) && (tmpdvbnode->felock != 0 || (flag == 2 && tmpdvbnode->felock == 0)))
    497496                                {
    498                                         found = 0;
     497                                        found = -1;
    499498                                        break;
    500499                                }
     
    507506                        }
    508507                        CharPtrTmp[found] = NULL;
    509                         if(found == 0)
     508                        if(found == -1)
    510509                        {
    511510                                dvbnode = dvbnode->next;
Note: See TracChangeset for help on using the changeset viewer.