From 4abe77f3c13adc7ad1ee8b06dac13a9917ce211c Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 1 Mar 2021 11:25:07 +0100 Subject: [PATCH] fix --- cube/User/Src/networkAbstractionLayer_lan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cube/User/Src/networkAbstractionLayer_lan.c b/cube/User/Src/networkAbstractionLayer_lan.c index 5fb77ad..f6c7386 100644 --- a/cube/User/Src/networkAbstractionLayer_lan.c +++ b/cube/User/Src/networkAbstractionLayer_lan.c @@ -96,7 +96,7 @@ void networkSntpEngine(void *handle) { memset(&(localHandle->ntpMsg), 0, sizeof(localHandle->ntpMsg)); localHandle->ntpMsg.s.li_vn_mode = SEND_LI_VN_MODE; localHandle->ntpMsg.s.xmt_l = 1; - sendto(SNTP_SOCK, &(localHandle->ntpMsg.b), + sendto(SNTP_SOCK, localHandle->ntpMsg.b, sizeof(localHandle->ntpMsg.b), localHandle->ntpAddr, NTP_PORT); coloredMsg(LOG_BLUE, "nes, sent"); localHandle->sntpState = SNTP_STATE_RECV; @@ -123,7 +123,7 @@ void networkSntpEngine(void *handle) { uint8_t srcAddr[4]; uint16_t srcPort; - recvfrom(SNTP_SOCK, &(localHandle->ntpMsg.b), + recvfrom(SNTP_SOCK, localHandle->ntpMsg.b, sizeof(localHandle->ntpMsg.b), srcAddr, &srcPort); /*