File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ static bool isValid(byte const *ntpPacket)
89
89
unsigned long highWord = word (ntpPacket[16 ], ntpPacket[17 ]);
90
90
unsigned long lowWord = word (ntpPacket[18 ], ntpPacket[19 ]);
91
91
unsigned long refTimeInt = highWord << 16 | lowWord;
92
- highWord = word (ntpPacket[20 ], ntpPacket[21 ]);
93
- lowWord = word (ntpPacket[22 ], ntpPacket[23 ]);
94
- unsigned long refTimeFrac = highWord << 16 | lowWord;
95
92
96
93
byte leapIndicator = ((ntpPacket[0 ] & 0b11000000 ) >> 6 );
97
94
byte version = ((ntpPacket[0 ] & 0b00111000 ) >> 3 );
@@ -105,8 +102,7 @@ static bool isValid(byte const *ntpPacket)
105
102
((mode == 4 ) || (mode == 5 )) && // Mode == server or broadcast
106
103
(stratum >= 1 ) &&
107
104
(stratum <= 15 ) &&
108
- (refTimeInt != 0 ) &&
109
- (refTimeFrac != 0 )
105
+ (refTimeInt != 0 )
110
106
);
111
107
}
112
108
You can’t perform that action at this time.
0 commit comments