Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/DuetNG/DuetEthernet/Socket.cpp')
-rw-r--r--src/DuetNG/DuetEthernet/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DuetNG/DuetEthernet/Socket.cpp b/src/DuetNG/DuetEthernet/Socket.cpp
index 9624c56e..045b76a1 100644
--- a/src/DuetNG/DuetEthernet/Socket.cpp
+++ b/src/DuetNG/DuetEthernet/Socket.cpp
@@ -136,7 +136,7 @@ bool Socket::ReadBuffer(const char *&buffer, size_t &len)
return false;
}
- len = 2048; // initial value passed to TakeData is the maximum amount we will take
+ len = NetworkBuffer::bufferSize; // initial value passed to TakeData is the maximum amount we will take
buffer = reinterpret_cast<const char*>(receivedData->TakeData(len));
// debugPrintf("Taking %d bytes\n", len);
return true;