diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-10-31 00:05:13 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-10-31 00:05:13 +0300 |
commit | 22276b993bc8db027d55d8d47de4559ad10ca044 (patch) | |
tree | a69319e723ce32ce0e638057c325473fe3b16691 /src/FilamentMonitors | |
parent | 4d27cc210b6af47b3e99353c67568a157fb484ed (diff) |
Added explicit constructor calls
Diffstat (limited to 'src/FilamentMonitors')
-rw-r--r-- | src/FilamentMonitors/FilamentMonitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FilamentMonitors/FilamentMonitor.cpp b/src/FilamentMonitors/FilamentMonitor.cpp index f44871a6..95e68357 100644 --- a/src/FilamentMonitors/FilamentMonitor.cpp +++ b/src/FilamentMonitors/FilamentMonitor.cpp @@ -110,7 +110,7 @@ GCodeResult FilamentMonitor::CommonConfigure(GCodeBuffer& gb, const StringRef& r } haveIsrStepsCommanded = false; - if (interruptMode != InterruptMode::none && !port.AttachInterrupt(InterruptEntry, interruptMode, this)) + if (interruptMode != InterruptMode::none && !port.AttachInterrupt(InterruptEntry, interruptMode, CallbackParameter(this))) { reply.copy("unsuitable pin"); return GCodeResult::error; @@ -457,7 +457,7 @@ GCodeResult FilamentMonitor::CommonConfigure(const CanMessageGenericParser& pars } haveIsrStepsCommanded = false; - if (interruptMode != InterruptMode::none && !port.AttachInterrupt(InterruptEntry, interruptMode, this)) + if (interruptMode != InterruptMode::none && !port.AttachInterrupt(InterruptEntry, interruptMode, CallbackParameter(this))) { reply.copy("unsuitable pin"); return GCodeResult::error; |