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/CAN
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-21 21:27:25 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-21 21:27:25 +0300
commit111fae6e2184e5f8fde1b3487e8f50478c51541e (patch)
tree1aa4ee243ed12646bcfaf326237f2b852363652c /src/CAN
parent2f48d9f7be0d063eafbe85e137b6290d22a1fca2 (diff)
Implemented most filament monitor support in expansion mode
Lookup of accumulated extrusion is still wrong when in expansion mode
Diffstat (limited to 'src/CAN')
-rw-r--r--src/CAN/CommandProcessor.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp
index a206e43a..ccaa5771 100644
--- a/src/CAN/CommandProcessor.cpp
+++ b/src/CAN/CommandProcessor.cpp
@@ -543,22 +543,22 @@ void CommandProcessor::ProcessReceivedMessage(CanMessageBuffer *buf) noexcept
CanInterface::SendResponseNoFree(buf);
return;
-#if 0 // filament monitor commands not implemented yet
- case CanMessageType::createFilamentMonitor:
- requestId = buf->msg.createFilamentMonitor.requestId;
- rslt = FilamentMonitor::Create(buf->msg.createFilamentMonitor, replyRef);
- break;
+ // Filament monitor commands
+ case CanMessageType::createFilamentMonitor:
+ requestId = buf->msg.createFilamentMonitor.requestId;
+ rslt = FilamentMonitor::Create(buf->msg.createFilamentMonitor, replyRef);
+ break;
- case CanMessageType::deleteFilamentMonitor:
- requestId = buf->msg.deleteFilamentMonitor.requestId;
- rslt = FilamentMonitor::Delete(buf->msg.deleteFilamentMonitor, replyRef);
- break;
+ case CanMessageType::deleteFilamentMonitor:
+ requestId = buf->msg.deleteFilamentMonitor.requestId;
+ rslt = FilamentMonitor::Delete(buf->msg.deleteFilamentMonitor, replyRef);
+ break;
+
+ case CanMessageType::configureFilamentMonitor:
+ requestId = buf->msg.generic.requestId;
+ rslt = FilamentMonitor::Configure(buf->msg.generic, replyRef);
+ break;
- case CanMessageType::configureFilamentMonitor:
- requestId = buf->msg.generic.requestId;
- rslt = FilamentMonitor::Configure(buf->msg.generic, replyRef);
- break;
-#endif
default:
// We received a message type that we don't recognise. If it's a broadcast, ignore it. If it's addressed to us, send a reply.
if (buf->id.Src() != CanInterface::GetCanAddress())