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
path: root/src/Comms
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-06-02 17:06:23 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-06-02 17:06:23 +0300
commite8da1e9fadc21aac11cd2e2c36d1cedaca8a8606 (patch)
tree0e69fd35b34f97e6b5d62996ac14ec8d844ed3dc /src/Comms
parent5a578f2a63d6e3b4526893f9beb6713f1224ef26 (diff)
Corrected initialisation of Aux1 on Duet 3 MB6HC
Diffstat (limited to 'src/Comms')
-rw-r--r--src/Comms/AuxDevice.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Comms/AuxDevice.cpp b/src/Comms/AuxDevice.cpp
index babc9d2d..f788da20 100644
--- a/src/Comms/AuxDevice.cpp
+++ b/src/Comms/AuxDevice.cpp
@@ -151,8 +151,11 @@ bool AuxDevice::Flush() noexcept
void AuxDevice::Diagnostics(MessageType mt, unsigned int index) noexcept
{
- const UARTClass::Errors errs = uart->GetAndClearErrors();
- reprap.GetPlatform().MessageF(mt, "Aux%u errors %u,%u,%u\n", index, (unsigned int)errs.uartOverrun, (unsigned int)errs.bufferOverrun, (unsigned int)errs.framing);
+ if (enabled)
+ {
+ const UARTClass::Errors errs = uart->GetAndClearErrors();
+ reprap.GetPlatform().MessageF(mt, "Aux%u errors %u,%u,%u\n", index, (unsigned int)errs.uartOverrun, (unsigned int)errs.bufferOverrun, (unsigned int)errs.framing);
+ }
}
#endif