Changeset 3270 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Apr 8, 2011, 11:29:56 AM (9 years ago)
Author:
mervart
Message:

LM: modification due to 24-hour problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r3097 r3270  
    301301  glo_timeofday = j-nul;
    302302
    303   if(mSecOfWeek < 5*60*1000 && glo_timeofday > 23*60*60)
     303  // original version
     304  // if(mSecOfWeek < 5*60*1000 && glo_timeofday > 23*60*60)
     305  //   *secOfWeek += 24*60*60;
     306  // else if(glo_timeofday < 5*60 && mSecOfWeek > 23*60*60*1000)
     307  //   *secOfWeek -= 24*60*60;
     308
     309  // new version
     310  if(mSecOfWeek < 4*60*60*1000 && glo_timeofday > 20*60*60)
    304311    *secOfWeek += 24*60*60;
    305   else if(glo_timeofday < 5*60 && mSecOfWeek > 23*60*60*1000)
     312  else if(glo_timeofday < 4*60*60 && mSecOfWeek > 20*60*60*1000)
    306313    *secOfWeek -= 24*60*60;
     314
    307315  *secOfWeek += mSecOfWeek/1000-glo_timeofday;
    308316  if(fixnumleap)
Note: See TracChangeset for help on using the changeset viewer.