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/Heating/Heat.cpp')
-rw-r--r--src/Heating/Heat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Heating/Heat.cpp b/src/Heating/Heat.cpp
index 37662c44..19e9acc2 100644
--- a/src/Heating/Heat.cpp
+++ b/src/Heating/Heat.cpp
@@ -1188,7 +1188,7 @@ bool Heat::WriteBedAndChamberTempSettings(FileStore *f) const noexcept
void Heat::ProcessRemoteSensorsReport(CanAddress src, const CanMessageSensorTemperatures& msg) noexcept
{
Bitmap<uint64_t> sensorsReported(msg.whichSensors);
- sensorsReported.Iterate([this, src, msg](unsigned int sensor, unsigned int index)
+ sensorsReported.Iterate([this, src, &msg](unsigned int sensor, unsigned int index)
{
if (index < ARRAY_SIZE(msg.temperatureReports))
{
@@ -1212,7 +1212,7 @@ void Heat::ProcessRemoteSensorsReport(CanAddress src, const CanMessageSensorTemp
void Heat::ProcessRemoteHeatersReport(CanAddress src, const CanMessageHeatersStatus& msg) noexcept
{
Bitmap<uint64_t> heatersReported(msg.whichHeaters);
- heatersReported.Iterate([this, src, msg](unsigned int heaterNum, unsigned int index)
+ heatersReported.Iterate([this, src, &msg](unsigned int heaterNum, unsigned int index)
{
if (index < ARRAY_SIZE(msg.reports))
{