Open MHotchin opened 2 years ago
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.
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.