@@ -902,8 +902,6 double computeCorrection( unsigned char | |||
|
902 | 902 | deltaNext_ms = ((double) deltaNextTick) / 65536. * 1000.; |
|
903 | 903 | |
|
904 | 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 | 906 | // which tick is the closest? |
|
909 | 907 | if (deltaPreviousTick > deltaNextTick) |
@@ -926,9 +924,9 void applyCorrection( double correction | |||
|
926 | 924 | { |
|
927 | 925 | int correctionInt; |
|
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 | 931 | correctionInt = 1; |
|
934 | 932 | } |
@@ -939,7 +937,7 void applyCorrection( double correction | |||
|
939 | 937 | } |
|
940 | 938 | else |
|
941 | 939 | { |
|
942 | if ( correction < -0.5) | |
|
940 | if ( (correction < -1.) && (correction < -0.5) ) | |
|
943 | 941 | { |
|
944 | 942 | correctionInt = -1; |
|
945 | 943 | } |
General Comments 0
You need to be logged in to leave comments.
Login now