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>2021-07-24 13:04:13 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-07-24 13:04:13 +0300
commit745c9baea0c8d6b3987d0a8795c74afa5ae4da03 (patch)
tree0e1f2f27d7c5f2585e809ec5deb2eb4d5966ebc7 /src/FilamentMonitors
parent107551283f1f69e607125b75bb8cfebf4cb8cd5d (diff)
Finished converting time units to step clocks, pending testing
Diffstat (limited to 'src/FilamentMonitors')
-rw-r--r--src/FilamentMonitors/Duet3DFilamentMonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FilamentMonitors/Duet3DFilamentMonitor.cpp b/src/FilamentMonitors/Duet3DFilamentMonitor.cpp
index 41c957c9..cc91f0d9 100644
--- a/src/FilamentMonitors/Duet3DFilamentMonitor.cpp
+++ b/src/FilamentMonitors/Duet3DFilamentMonitor.cpp
@@ -85,7 +85,7 @@ Duet3DFilamentMonitor::PollResult Duet3DFilamentMonitor::PollReceiveBuffer(uint1
{
// For the Duet3D sensors we need to decode the received data from the transition times recorded in the edgeCaptures array
static constexpr uint32_t BitsPerSecond = 1000; // the nominal bit rate that the data is transmitted at
- static constexpr uint32_t NominalBitLength = StepTimer::StepClockRate/BitsPerSecond; // the nominal bit length in step clocks
+ static constexpr uint32_t NominalBitLength = StepClockRate/BitsPerSecond; // the nominal bit length in step clocks
static constexpr uint32_t MinBitLength = (NominalBitLength * 10)/13; // allow 30% clock speed tolerance
static constexpr uint32_t MaxBitLength = (NominalBitLength * 13)/10; // allow 30% clock speed tolerance
static constexpr uint32_t ErrorRecoveryDelayBits = 8; // before a start bit we want the line to be low for this long