@@ -902,8 +902,6 double computeCorrection( unsigned char | |||||
902 | deltaNext_ms = ((double) deltaNextTick) / 65536. * 1000.; |
|
902 | deltaNext_ms = ((double) deltaNextTick) / 65536. * 1000.; | |
903 |
|
903 | |||
904 | PRINTF2(" delta previous = %.3f ms, delta next = %.2f ms\n", deltaPrevious_ms, deltaNext_ms); |
|
904 | PRINTF2(" delta previous = %.3f ms, delta next = %.2f ms\n", deltaPrevious_ms, deltaNext_ms); | |
905 | // PRINTF2(" delta previous = %llu fine time ticks, delta next = %llu fine time ticks\n", |
|
|||
906 | // deltaPreviousTick, deltaNextTick); |
|
|||
907 |
|
905 | |||
908 | // which tick is the closest? |
|
906 | // which tick is the closest? | |
909 | if (deltaPreviousTick > deltaNextTick) |
|
907 | if (deltaPreviousTick > deltaNextTick) | |
@@ -928,7 +926,7 void applyCorrection( double correction | |||||
928 |
|
926 | |||
929 | if (correction>=0.) |
|
927 | if (correction >= 0.) | |
930 | { |
|
928 | { | |
931 | if ( correction > 0.5 ) |
|
929 | if ( (1. > correction) && (correction > 0.5) ) | |
932 | { |
|
930 | { | |
933 | correctionInt = 1; |
|
931 | correctionInt = 1; | |
934 | } |
|
932 | } | |
@@ -939,7 +937,7 void applyCorrection( double correction | |||||
939 | } |
|
937 | } | |
940 | else |
|
938 | else | |
941 | { |
|
939 | { | |
942 | if ( correction < -0.5) |
|
940 | if ( (correction < -1.) && (correction < -0.5) ) | |
943 | { |
|
941 | { | |
944 | correctionInt = -1; |
|
942 | correctionInt = -1; | |
945 | } |
|
943 | } |
General Comments 0
You need to be logged in to leave comments.
Login now