NTPClient
NTPClient copied to clipboard
Memory buffer could be stack allocated, saving global memory.
trafficstars
Currently the memory buffer used to send and receive the UDP packet is allocated in the NTP object.
It is only ever used in one function, it could be allocated as a stack object instead.
My mistake - it's used in two places, but none of the data in the buffer is reused. It could be stack allocated in both functions.