Changeset 8119 in ntrip for trunk/BNC/src/bnccaster.cpp


Ignore:
Timestamp:
Apr 28, 2017, 6:20:37 PM (7 years ago)
Author:
stuerze
Message:

minor changes to switch of the re-read functionlality as it is requitred in command line mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccaster.cpp

    r7854 r8119  
    207207             !settings.value("outPort").toString().isEmpty() ) {
    208208          emit( newMessage(QString("%1: Old epoch %2 thrown away")
    209                            .arg(staID.data()).arg(string(obs._time).c_str())
    210                            .toAscii(), true) );
     209                 .arg(staID.data()).arg(string(obs._time).c_str())
     210               .toAscii(), true) );
    211211        }
    212212      }
     
    454454  // (Re-) Start the configuration timer
    455455  // -----------------------------------
     456  if      (settings.value("onTheFlyInterval").toString() == "no") {
     457    return;
     458  }
     459
    456460  int ms = 0;
    457 
    458461  if (_confInterval != -1) {
    459462    ms = 1000 * _confInterval;
     
    462465    QTime currTime = currentDateAndTimeGPS().time();
    463466    QTime nextShotTime;
    464 
    465467    if      (settings.value("onTheFlyInterval").toString() == "1 min") {
    466       _confInterval = 60;
    467       nextShotTime = QTime(currTime.hour(), currTime.minute()+1, 0);
     468          _confInterval = 60;
     469          nextShotTime = QTime(currTime.hour(), currTime.minute()+1, 0);
    468470    }
    469471    else if (settings.value("onTheFlyInterval").toString() == "5 min") {
Note: See TracChangeset for help on using the changeset viewer.