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-12-21 14:15:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-12-21 14:15:35 +0300
commit13f51fcd3b22ef9dc4798607d8b27f185d7358b5 (patch)
tree41829410b5ed13317bb3832541576b291e1c0242 /src/Platform/Platform.cpp
parent048200063a1a3e576717311380a6b9eef314c0cd (diff)
Recognise DueX v0.11 boards and adjust default thermistor series R
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r--src/Platform/Platform.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 718ab2d7..1b4e2ebb 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -522,14 +522,17 @@ void Platform::Init() noexcept
#if HAS_SMART_DRIVERS
# if defined(DUET_NG)
// Test for presence of a DueX2 or DueX5 expansion board and work out how many TMC2660 drivers we have
+ // Call this before set set up the direction pins, because we use pulldown resistors on direction pins to specify the DueXn version.
expansionBoard = DuetExpansion::DueXnInit();
switch (expansionBoard)
{
case ExpansionBoardType::DueX2:
+ case ExpansionBoardType::DueX2_v0_11:
numSmartDrivers = 7;
break;
case ExpansionBoardType::DueX5:
+ case ExpansionBoardType::DueX5_v0_11:
numSmartDrivers = 10;
break;
case ExpansionBoardType::none:
@@ -645,7 +648,7 @@ void Platform::Init() noexcept
driveDriverBits[driver + MaxAxesPlusExtruders] = StepPins::CalcDriverBitmap(driver);
}
- // Set up the local drivers
+ // Set up the local drivers. Do this after we have read any direction pins that specify the board type.
for (size_t driver = 0; driver < NumDirectDrivers; ++driver)
{
directions[driver] = true; // drive moves forwards by default