fix
This commit is contained in:
@ -154,8 +154,8 @@ void networkSntpEngine(void *handle) {
|
||||
uint32_t xmt_h =
|
||||
(localHandle->ntpMsg.s.xmt_h & 0x0000000ff) << 24 |
|
||||
(localHandle->ntpMsg.s.xmt_h & 0x00000ff00) << 8 |
|
||||
(localHandle->ntpMsg.s.xmt_h & 0x00ff00000) >> 8 |
|
||||
(localHandle->ntpMsg.s.xmt_h & 0xff0000000) >> 24;
|
||||
(localHandle->ntpMsg.s.xmt_h & 0x000ff0000) >> 8 |
|
||||
(localHandle->ntpMsg.s.xmt_h & 0x0ff000000) >> 24;
|
||||
localHandle->seconds = ((uint64_t)xmt_h) - UNIX_NTP_EPOCH_DIFF;
|
||||
coloredMsg(LOG_BLUE, "nes, xmt: %08x", xmt_h);
|
||||
coloredMsg(LOG_BLUE, "nes, seconds: %lu", localHandle->seconds);
|
||||
|
Reference in New Issue
Block a user