Skip to content

Commit

Permalink
Fix crash on ESP32 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
gmag11 committed Oct 1, 2019
1 parent 2ab1e8c commit 1f0fbb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NTPClientLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ boolean NTPClient::sendNTPpacket (AsyncUDP *udp) {
}
}

void NTPClient::processPacket (AsyncUDPPacket packet) {
void NTPClient::processPacket (AsyncUDPPacket& packet) {
uint8_t *ntpPacketBuffer;
int size;

Expand Down
2 changes: 1 addition & 1 deletion src/NtpClientLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class NTPClient {
* Get packet response and update time as of its data
* @param[in] UDP response packet.
*/
void processPacket (AsyncUDPPacket packet);
void processPacket (AsyncUDPPacket& packet);

/**
* Send NTP request to server
Expand Down

0 comments on commit 1f0fbb0

Please sign in to comment.