Changeset 36307 for titan/titan/scan.h


Ignore:
Timestamp:
11/24/15 17:42:45 (8 years ago)
Author:
obi
Message:

nit scan delete transponder and write new

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/scan.h

    r36305 r36307  
    209209        id = id | ((uint64_t)1 << 32);
    210210
     211/*
    211212        if(gettransponder(id) == NULL)
    212213        {
     
    214215                status.writetransponder = 1;
    215216        }
     217*/
     218        // write allways transponder and delete old entry
     219        deltransponderbyid(id);
     220        tpnode = createtransponder(id, FE_QAM, orbitalpos, frequency, INVERSION_AUTO, symbolrate, 0, fec, modulation, 0, 0, 0);
     221        status.writetransponder = 1;
    216222
    217223        debug(500, "nitscan: id=%llu freq=%d sr=%d fec=%d modulation=%d tpnode=%p", id, frequency, symbolrate, fec, modulation, tpnode);
     
    309315        id = id | ((uint64_t)2 << 32);
    310316
     317/*
    311318        if(gettransponder(id) == NULL)
    312319        {
     
    314321                status.writetransponder = 1;
    315322        }
     323*/
     324        // write allways transponder and delete old entry
     325        deltransponderbyid(id);
     326        tpnode = createtransponder(id, FE_OFDM, orbitalpos, frequency, INVERSION_AUTO, bandwidth, lp, hp, modulation, guardinterval, transmission, hierarchy);
     327        status.writetransponder = 1;
    316328
    317329        debug(500, "nitscan: id=%llu freq=%d bandwidth=%d hp=%d lp=%d modulation=%d guard=%d trans=%d hierarchy=%d tpnode=%p", id, frequency, bandwidth, hp, lp, modulation, guardinterval, transmission, hierarchy, tpnode);
Note: See TracChangeset for help on using the changeset viewer.