From 41f5d2908383be7966153a93a070b30baf5d3458 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Thu, 10 Aug 2023 08:25:17 +0200 Subject: [PATCH] Set correct default bowden length --- src/config/config.h | 2 +- src/modules/permanent_storage.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config/config.h b/src/config/config.h index 94b9236..896026d 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -95,7 +95,7 @@ static constexpr U_mm couplerToBowden = 3.5_mm; /// FINDA Coupler screw to bowde // just another piece of PLA (probably having more resistance in the tubes) // and we are at least 40mm off! It looks like this really depends on the exact position // We'll probably need to check for StallGuard while pushing the filament to avoid ginding the filament -static constexpr U_mm defaultBowdenLength = 427.0_mm; /// ~427.0_mm - Default Bowden length. +static constexpr U_mm defaultBowdenLength = 360.0_mm; /// ~360.0_mm - Default Bowden length. static constexpr U_mm minimumBowdenLength = 341.0_mm; /// ~341.0_mm - Minimum bowden length. static constexpr U_mm maximumBowdenLength = 792.0_mm; /// ~792.0_mm - Maximum bowden length. static constexpr U_mm feedToFinda = cuttingEdgeToFindaMidpoint + filamentMinLoadedToMMU; diff --git a/src/modules/permanent_storage.cpp b/src/modules/permanent_storage.cpp index 49a6223..f2c22e8 100644 --- a/src/modules/permanent_storage.cpp +++ b/src/modules/permanent_storage.cpp @@ -46,8 +46,7 @@ static const uint8_t layoutVersion = 0xff; // ideally, this would have been a nice constexpr (since it is a compile time constant), but the C++ standard prohibits reinterpret_casts in constexpr static eeprom_t *const eepromBase = reinterpret_cast(0); ///< First EEPROM address constexpr const uint16_t eepromEmpty = 0xffffU; ///< EEPROM content when erased -constexpr const uint16_t eepromLengthCorrectionBase = config::defaultBowdenLength.v; -constexpr const uint16_t eepromBowdenLenDefault = config::defaultBowdenLength.v; ///< Default bowden length (~427 mm) +constexpr const uint16_t eepromBowdenLenDefault = config::defaultBowdenLength.v; ///< Default bowden length (~360 mm) constexpr const uint16_t eepromBowdenLenMinimum = config::minimumBowdenLength.v; ///< Minimum bowden length (~341 mm) constexpr const uint16_t eepromBowdenLenMaximum = config::maximumBowdenLength.v; ///< Maximum bowden length (~792 mm)