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/CanInterface.cpp')
-rw-r--r--src/CAN/CanInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CAN/CanInterface.cpp b/src/CAN/CanInterface.cpp
index 9249dfc5..20c36877 100644
--- a/src/CAN/CanInterface.cpp
+++ b/src/CAN/CanInterface.cpp
@@ -350,8 +350,8 @@ void CanInterface::SendAnnounce(CanMessageBuffer *buf) noexcept
void CanInterface::RaiseEvent(EventType type, uint16_t param, uint8_t device, const char *format, va_list vargs) noexcept
{
CanMessageBuffer buf(nullptr);
- auto msg = buf.SetupStatusMessage<CanMessageEvent>(CanInterface::GetCanAddress(), CanId::MasterAddress);
- msg->eventType = EventType::heater_fault;
+ auto msg = buf.SetupStatusMessage<CanMessageEvent>(GetCanAddress(), GetCurrentMasterAddress());
+ msg->eventType = type.ToBaseType();;
msg->deviceNumber = device;
msg->eventParam = param;
msg->zero = 0;