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:
authorDavid Crocker <dcrocker@eschertech.com>2021-11-13 19:07:08 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-11-13 19:07:08 +0300
commitaf452e756c4bbed60d3b35d7ed3f64bdcebd78ee (patch)
treeae99fd5f1f345f8d027031dba1217d322773fd23 /src/Platform
parent1df3d37894a2054d13d953d4b60f515766c2a0e9 (diff)
Fixed Print::write overloaded and hidden functions mess
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Platform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 8aafab9a..36b88370 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -962,7 +962,7 @@ bool Platform::FlushMessages() noexcept
const size_t bytesToWrite = min<size_t>(SERIAL_MAIN_DEVICE.canWrite(), usbOutputBuffer->BytesLeft());
if (bytesToWrite != 0)
{
- SERIAL_MAIN_DEVICE.write(usbOutputBuffer->Read(bytesToWrite), bytesToWrite);
+ SERIAL_MAIN_DEVICE.print(usbOutputBuffer->Read(bytesToWrite), bytesToWrite);
}
if (usbOutputBuffer->BytesLeft() == 0)
@@ -3296,7 +3296,7 @@ void Platform::RawMessage(MessageType type, const char *_ecv_array message) noex
size_t len = strlen(p);
while (SERIAL_MAIN_DEVICE.IsConnected() && len != 0 && !reprap.SpinTimeoutImminent())
{
- const size_t written = SERIAL_MAIN_DEVICE.write(p, len);
+ const size_t written = SERIAL_MAIN_DEVICE.print(p, len);
len -= written;
p += written;
}