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:
authorDavid Crocker <dcrocker@eschertech.com>2020-03-14 16:01:50 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-03-14 16:01:50 +0300
commitdfb54d8194052cfd137e9d583d5a3ad7033729a9 (patch)
treed06b29d5e4681a5fa73a1b33def184bfe372b776 /src/Endstops
parent5a1896b396b96f6f402a4d14428cbbb09f2453d2 (diff)
Fix for non-BLTouch Z probes on tool and expansion boards
Diffstat (limited to 'src/Endstops')
-rw-r--r--src/Endstops/RemoteZProbe.cpp4
-rw-r--r--src/Endstops/RemoteZProbe.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Endstops/RemoteZProbe.cpp b/src/Endstops/RemoteZProbe.cpp
index 541e1464..69cc644e 100644
--- a/src/Endstops/RemoteZProbe.cpp
+++ b/src/Endstops/RemoteZProbe.cpp
@@ -52,7 +52,7 @@ uint16_t RemoteZProbe::GetRawReading() const noexcept
void RemoteZProbe::SetProbing(bool isProbing) noexcept
{
String<StringLength100> reply;
- const GCodeResult rslt = CanInterface::EnableHandle(boardAddress, handle, isProbing, state, reply.GetRef());
+ const GCodeResult rslt = CanInterface::ChangeHandleResponseTime(boardAddress, handle, (isProbing) ? ActiveProbeReportInterval : InactiveProbeReportInterval, state, reply.GetRef());
if (rslt != GCodeResult::ok)
{
reply.cat('\n');
@@ -76,7 +76,7 @@ GCodeResult RemoteZProbe::Create(const StringRef& pinNames, const StringRef& rep
}
handle.Set(RemoteInputHandle::typeZprobe, number, 0);
- return CanInterface::CreateHandle(boardAddress, handle, pinNames.c_str(), 0, MinimumProbeReportInterval, state, reply);
+ return CanInterface::CreateHandle(boardAddress, handle, pinNames.c_str(), 0, ActiveProbeReportInterval, state, reply);
}
// Configure an existing remote Z probe
diff --git a/src/Endstops/RemoteZProbe.h b/src/Endstops/RemoteZProbe.h
index 2bb4bb36..e14d7d33 100644
--- a/src/Endstops/RemoteZProbe.h
+++ b/src/Endstops/RemoteZProbe.h
@@ -37,7 +37,8 @@ private:
RemoteInputHandle handle;
bool state;
- static constexpr uint16_t MinimumProbeReportInterval = 5;
+ static constexpr uint16_t ActiveProbeReportInterval = 2;
+ static constexpr uint16_t InactiveProbeReportInterval = 25;
};
#endif