Skip to content

Commit 0af48f2

Browse files
author
Jeroen88
committed
Add logging in fillBuffer() if allocation of buffer fails
1 parent 851ceb5 commit 0af48f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFiClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class WiFiClientRxBuffer {
5959
if(!_buffer){
6060
_buffer = (uint8_t *)malloc(_size);
6161
if(!_buffer) {
62+
log_e("Not enough memory to allocate buffer");
6263
_failed = true;
6364
return 0;
6465
}

0 commit comments

Comments
 (0)