• Alessandro Rubini's avatar
    bugfix: correctionField conversion · a1b8d474
    Alessandro Rubini authored
    I initially looked at int64_to_TimeInternal to swap arguments, since
    to_TimeInternal as timeinternal (the output) as first argument, and
    they appeared in pairs.  However, int64_to_TimeInternal is only used
    for correction fields, and they are scaled nanoseconds (page 126), not
    nanoseconds.
    
    Thus, this commit fixes the conversion and renames the function to
    "cField_to_TimeInternal" to better tell the reader what it is.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    a1b8d474
ppsi.h 9.64 KB