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:
Diffstat (limited to 'src/CAN/CommandProcessor.cpp')
-rw-r--r--src/CAN/CommandProcessor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp
index 43d99b58..b74c4750 100644
--- a/src/CAN/CommandProcessor.cpp
+++ b/src/CAN/CommandProcessor.cpp
@@ -13,6 +13,7 @@
#include <CanMessageBuffer.h>
#include <Platform/RepRap.h>
#include <Platform/Platform.h>
+#include <Platform/Event.h>
#include <Heating/Heat.h>
#include "ExpansionManager.h"
# include <ClosedLoop/ClosedLoop.h>
@@ -655,6 +656,10 @@ void CommandProcessor::ProcessReceivedMessage(CanMessageBuffer *buf) noexcept
ClosedLoop::ProcessReceivedData(buf->id.Src(), buf->msg.closedLoopData, buf->dataLength);
break;
+ case CanMessageType::event:
+ Event::Add(buf->msg.event, buf->id.Src(), buf->dataLength);
+ break;
+
#if SUPPORT_ACCELEROMETERS
case CanMessageType::accelerometerData:
Accelerometers::ProcessReceivedData(buf->id.Src(), buf->msg.accelerometerData, buf->dataLength);