diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-13 19:07:08 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-13 19:07:08 +0300 |
commit | af452e756c4bbed60d3b35d7ed3f64bdcebd78ee (patch) | |
tree | ae99fd5f1f345f8d027031dba1217d322773fd23 /src/Comms | |
parent | 1df3d37894a2054d13d953d4b60f515766c2a0e9 (diff) |
Fixed Print::write overloaded and hidden functions mess
Diffstat (limited to 'src/Comms')
-rw-r--r-- | src/Comms/AuxDevice.cpp | 2 | ||||
-rw-r--r-- | src/Comms/PanelDueUpdater.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Comms/AuxDevice.cpp b/src/Comms/AuxDevice.cpp index 05fa65cc..2d41a41b 100644 --- a/src/Comms/AuxDevice.cpp +++ b/src/Comms/AuxDevice.cpp @@ -136,7 +136,7 @@ bool AuxDevice::Flush() noexcept const size_t bytesToWrite = min<size_t>(uart->canWrite(), auxOutputBuffer->BytesLeft()); if (bytesToWrite > 0) { - uart->write(auxOutputBuffer->Read(bytesToWrite), bytesToWrite); + uart->print(auxOutputBuffer->Read(bytesToWrite), bytesToWrite); } if (auxOutputBuffer->BytesLeft() == 0) diff --git a/src/Comms/PanelDueUpdater.cpp b/src/Comms/PanelDueUpdater.cpp index 41158da9..92c5989c 100644 --- a/src/Comms/PanelDueUpdater.cpp +++ b/src/Comms/PanelDueUpdater.cpp @@ -159,7 +159,7 @@ void PanelDueUpdater::Spin() noexcept // Since writing messages via AppendAuxReply is disabled while flashing we need to send it directly auto auxPort = GetAuxPort(); auxPort->write('\n'); // Make sure the previous message is regarded as terminated by PanelDue - auxPort->write(panelDueCommandEraseAndReset); + auxPort->print(panelDueCommandEraseAndReset); auxPort->flush(); state = FlashState::waitAfterEraseAndReset; erasedAndResetAt = millis(); |