diff options
Diffstat (limited to 'src/DuetNG/DuetEthernet/Socket.cpp')
-rw-r--r-- | src/DuetNG/DuetEthernet/Socket.cpp | 2 |
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; |