indentation fix2
This commit is contained in:
parent
d56cefdc7a
commit
5fb891c495
@ -249,7 +249,7 @@ static bool isValidNtpResponse(byte * ntpPacket) {
|
|||||||
// if((ntpPacket[0] & 0b00111000) >> 3 < 0b100) return false; //reject Version < 4
|
// if((ntpPacket[0] & 0b00111000) >> 3 < 0b100) return false; //reject Version < 4
|
||||||
if((ntpPacket[0] & 0b00000111) != 0b100) return false; //reject Mode != Server
|
if((ntpPacket[0] & 0b00000111) != 0b100) return false; //reject Mode != Server
|
||||||
if((ntpPacket[1] < 1) || (ntpPacket[1] > 15)) return false; //reject invalid Stratum
|
if((ntpPacket[1] < 1) || (ntpPacket[1] > 15)) return false; //reject invalid Stratum
|
||||||
if( ntpPacket[16] == 0 && ntpPacket[17] == 0 &&
|
if( ntpPacket[16] == 0 && ntpPacket[17] == 0 &&
|
||||||
ntpPacket[18] == 0 && ntpPacket[19] == 0 &&
|
ntpPacket[18] == 0 && ntpPacket[19] == 0 &&
|
||||||
ntpPacket[20] == 0 && ntpPacket[21] == 0 &&
|
ntpPacket[20] == 0 && ntpPacket[21] == 0 &&
|
||||||
ntpPacket[22] == 0 && ntpPacket[23] == 0) //reject ReferenceTimestamp == 0
|
ntpPacket[22] == 0 && ntpPacket[23] == 0) //reject ReferenceTimestamp == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user