Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be78716

Browse filesBrowse files
authored
Update WiFiUdp.cpp
Change return value of UDP::endPacket() to match specifications Ref: espressif#138
1 parent a2931e7 commit be78716
Copy full SHA for be78716

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎libraries/WiFi/src/WiFiUdp.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiUdp.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ int WiFiUDP::endPacket(){
158158
int sent = sendto(udp_server, tx_buffer, tx_buffer_len, 0, (struct sockaddr*) &recipient, sizeof(recipient));
159159
if(sent < 0){
160160
log_e("could not send data: %d", errno);
161+
return 0;
161162
}
162-
return sent;
163+
return 1;
163164
}
164165

165166
size_t WiFiUDP::write(uint8_t data){

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.