Fix warnings and update ReadMe (#1067)

Fix warnings and update ReadMe

Also, make the demo output comprehensible.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav-Aggarwal-AWS 2023-08-10 10:41:12 +05:30 committed by GitHub
parent eefb87aa0d
commit 7b15146706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 255 additions and 283 deletions

View file

@ -247,6 +247,7 @@ void vStartNTPTask( uint16_t usTaskStackSize,
xStatus = EStatusAsking;
( void ) pvSearchID;
( void ) pcName;
if( pxAddress == NULL )
{
@ -431,6 +432,7 @@ static void prvReadTime( struct SNtpPacket * pxPacket )
#if ( USE_PLUS_FAT != 0 )
FreeRTOS_gmtime_r( &uxCurrentSeconds, &xTimeStruct );
#else
extern struct tm * gmtime_r( const time_t * pxTime, struct tm * tmStruct );
gmtime_r( &uxCurrentSeconds, &xTimeStruct );
#endif /* ( USE_PLUS_FAT != 0 ) */

View file

@ -30,7 +30,9 @@
#include <ws2tcpip.h>
#ifndef __MINGW32__
#define IN_MULTICAST( a ) IN_CLASSD( a )
#ifndef IN_MULTICAST
#define IN_MULTICAST( a ) IN_CLASSD( a )
#endif
#endif
#define IN_EXPERIMENTAL( a ) ( ( ( ( u_int32_t ) ( a ) ) & 0xf0000000 ) == 0xf0000000 )