Skip to content

Commit c5aaa6f

Browse files
committed
Merge branch 'bugfix-2.1.x' into pr/27740
2 parents 52f0a61 + 9758f5e commit c5aaa6f

File tree

8 files changed

+26
-27
lines changed

8 files changed

+26
-27
lines changed

Marlin/Configuration.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
#if ENABLED(PIDTEMP)
699699
//#define MIN_POWER 0 // Min power to improve PID stability (0..PID_MAX).
700700
// Get the power from the temperature report ('M105' => @:nnn) and try P*2-20 to P*2-10.
701-
//#define PID_DEBUG // Print PID debug data to the serial port. Use 'M303 D' to toggle activation.
701+
//#define PID_DEBUG // Print PID debug data to the serial port. Use 'M303 D' to enable/disable.
702702
//#define PID_PARAMS_PER_HOTEND // Use separate PID parameters for each extruder (useful for mismatched extruders)
703703
// Set/get with G-code: M301 E[extruder number, 0-2]
704704

@@ -799,7 +799,7 @@
799799
#if ENABLED(PIDTEMPBED)
800800
//#define MIN_BED_POWER 0 // Min power to improve PID stability (0..MAX_BED_POWER).
801801
// Get the power from the temperature report ('M105' => B@:nnn) and try P*2-20 to P*2-10.
802-
//#define PID_BED_DEBUG // Print Bed PID debug data to the serial port.
802+
//#define PID_BED_DEBUG // Print Bed PID debug data to the serial port. Use 'M303 D' to enable/disable.
803803

804804
// 120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
805805
// from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
@@ -882,11 +882,10 @@
882882
#if ENABLED(PIDTEMPCHAMBER)
883883
#define MIN_CHAMBER_POWER 0 // Min power to improve PID stability. (0..MAX_CHAMBER_POWER)
884884
// Get the power from the temperature report ('M105' => C@:nnn) and try P*2-20 to P*2-10.
885-
//#define PID_CHAMBER_DEBUG // Print Chamber PID debug data to the serial port.
885+
//#define PID_CHAMBER_DEBUG // Print Chamber PID debug data to the serial port. Use 'M303 D' to enable/disable.
886886

887887
// Lasko "MyHeat Personal Heater" (200w) modified with a Fotek SSR-10DA to control only the heating element
888888
// and placed inside the small Creality printer enclosure tent.
889-
//
890889
#define DEFAULT_chamberKp 37.04
891890
#define DEFAULT_chamberKi 1.40
892891
#define DEFAULT_chamberKd 655.17

Marlin/Configuration_adv.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,20 +1342,20 @@
13421342
//#define CALIBRATION_SCRIPT_PRE "M117 Starting Auto-Calibration\nT0\nG28\nG12\nM117 Calibrating..."
13431343
//#define CALIBRATION_SCRIPT_POST "M500\nM117 Calibration data saved"
13441344

1345-
#define CALIBRATION_FEEDRATE_SLOW 60 // mm/min
1346-
#define CALIBRATION_FEEDRATE_FAST 1200 // mm/min
1347-
#define CALIBRATION_FEEDRATE_TRAVEL 3000 // mm/min
1345+
#define CALIBRATION_FEEDRATE_SLOW 60 // (mm/min)
1346+
#define CALIBRATION_FEEDRATE_FAST 1200 // (mm/min)
1347+
#define CALIBRATION_FEEDRATE_TRAVEL 3000 // (mm/min)
13481348

13491349
// The following parameters refer to the conical section of the nozzle tip.
1350-
#define CALIBRATION_NOZZLE_TIP_HEIGHT 1.0 // mm
1351-
#define CALIBRATION_NOZZLE_OUTER_DIAMETER 2.0 // mm
1350+
#define CALIBRATION_NOZZLE_TIP_HEIGHT 1.0 // (mm)
1351+
#define CALIBRATION_NOZZLE_OUTER_DIAMETER 2.0 // (mm)
13521352

13531353
// Uncomment to enable reporting (required for "G425 V", but consumes flash).
13541354
//#define CALIBRATION_REPORTING
13551355

13561356
// The true location and dimension the cube/bolt/washer on the bed.
1357-
#define CALIBRATION_OBJECT_CENTER { 264.0, -22.0, -2.0 } // mm
1358-
#define CALIBRATION_OBJECT_DIMENSIONS { 10.0, 10.0, 10.0 } // mm
1357+
#define CALIBRATION_OBJECT_CENTER { 264.0, -22.0, -2.0 } // (mm)
1358+
#define CALIBRATION_OBJECT_DIMENSIONS { 10.0, 10.0, 10.0 } // (mm)
13591359

13601360
// Comment out any sides which are unreachable by the probe. For best
13611361
// auto-calibration results, all sides must be reachable.

Marlin/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
//#define STRING_DISTRIBUTION_DATE "2025-04-01"
44+
//#define STRING_DISTRIBUTION_DATE "2025-04-02"
4545

4646
/**
4747
* The protocol for communication to the host. Protocol indicates communication

Marlin/src/HAL/GD32_MFL/MinSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void MinSerialBegin() {
9595
volatile uint32_t ICER[32];
9696
};
9797
NVICMin *nvicBase = (NVICMin*)0xE000E100;
98-
98+
9999
SBI32(nvicBase->ICER[nvicIndex >> 5], nvicIndex & 0x1F);
100100

101101
// We require memory barriers to properly disable interrupts

Marlin/src/HAL/GD32_MFL/SDCard.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ class CardDMA {
160160
info->csd.device_size = (static_cast<uint32_t>(csd_bytes[6] & 0x03U) << 10U) |
161161
(static_cast<uint32_t>(csd_bytes[7]) << 2U) |
162162
(static_cast<uint32_t>((csd_bytes[8] & 0xC0U) >> 6U));
163-
info->csd.device_size_multiplier = static_cast<uint8_t>((csd_bytes[9] & 0x03U) << 1U |
163+
info->csd.device_size_multiplier = static_cast<uint8_t>((csd_bytes[9] & 0x03U) << 1U |
164164
(csd_bytes[10] & 0x80U) >> 7U);
165165

166166
info->block_size = static_cast<uint32_t>(1 << info->csd.read_block_length);
167-
info->capacity = static_cast<uint32_t>((info->csd.device_size + 1U) *
168-
(1U << (info->csd.device_size_multiplier + 2U)) *
167+
info->capacity = static_cast<uint32_t>((info->csd.device_size + 1U) *
168+
(1U << (info->csd.device_size_multiplier + 2U)) *
169169
info->block_size);
170170
}
171171

@@ -175,15 +175,15 @@ class CardDMA {
175175
static_cast<uint32_t>(csd_bytes[9]);
176176

177177
info->block_size = BLOCK_SIZE;
178-
info->capacity = static_cast<uint32_t>((info->csd.device_size + 1U) *
178+
info->capacity = static_cast<uint32_t>((info->csd.device_size + 1U) *
179179
BLOCK_SIZE * KILOBYTE);
180180
}
181181

182182
void process_common_csd_tail(Card_Info* info, const uint8_t* csd_bytes) {
183-
info->csd.sector_size = static_cast<uint8_t>(((csd_bytes[9] & 0x3FU) << 1U) |
183+
info->csd.sector_size = static_cast<uint8_t>(((csd_bytes[9] & 0x3FU) << 1U) |
184184
(csd_bytes[10] & 0x80U) >> 7U);
185185
info->csd.speed_factor = static_cast<uint8_t>((csd_bytes[11] & 0x1CU) >> 2U);
186-
info->csd.write_block_length = static_cast<uint8_t>(((csd_bytes[11] & 0x03U) << 2U) |
186+
info->csd.write_block_length = static_cast<uint8_t>(((csd_bytes[11] & 0x03U) << 2U) |
187187
((csd_bytes[12] & 0xC0U) >> 6U));
188188
info->csd.checksum = static_cast<uint8_t>((csd_bytes[15] & 0xFEU) >> 1U);
189189
}

Marlin/src/HAL/GD32_MFL/timers.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ uint32_t GetStepperTimerClkFreq() {
9797

9898
/**
9999
* @brief Starts a hardware timer
100-
*
100+
*
101101
* If the timer is not already initialized, this function will initialize it with the given frequency.
102102
* The timer is started immediately after initialization
103-
*
103+
*
104104
* @param timer The timer base index to start
105105
* @param frequency The frequency at which the timer should run
106106
* @return None
@@ -137,7 +137,7 @@ void HAL_timer_start(const uint8_t timer_number, const uint32_t frequency) {
137137

138138
/**
139139
* @brief Enables the interrupt for the specified timer
140-
*
140+
*
141141
* @param handle The timer handle for which to enable the interrupt
142142
* @return None
143143
*/
@@ -154,7 +154,7 @@ void HAL_timer_enable_interrupt(const uint8_t timer_number) {
154154

155155
/**
156156
* @brief Disables the interrupt for the specified timer
157-
*
157+
*
158158
* @param handle The timer handle for which to disable the interrupt
159159
* @return None
160160
*/
@@ -168,7 +168,7 @@ void HAL_timer_disable_interrupt(const uint8_t timer_number) {
168168

169169
/**
170170
* @brief Checks if the interrupt is enabled for the specified timer
171-
*
171+
*
172172
* @param handle The timer handle to check
173173
* @return True if the interrupt is enabled, false otherwise
174174
*/

Marlin/src/HAL/GD32_MFL/timers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ FORCE_INLINE static hal_timer_t HAL_timer_get_count(const uint8_t timer_number)
123123

124124
GeneralTimer& timer = (timer_number == MF_TIMER_STEP) ? Step_Timer : Temp_Timer;
125125

126-
return (timer_number == MF_TIMER_STEP || timer_number == MF_TIMER_TEMP)
127-
? timer.getCounter(TimerFormat::TICK)
126+
return (timer_number == MF_TIMER_STEP || timer_number == MF_TIMER_TEMP)
127+
? timer.getCounter(TimerFormat::TICK)
128128
: 0U;
129129
}
130130

Marlin/src/inc/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* version was tagged.
4343
*/
4444
#ifndef STRING_DISTRIBUTION_DATE
45-
#define STRING_DISTRIBUTION_DATE "2025-04-01"
45+
#define STRING_DISTRIBUTION_DATE "2025-04-02"
4646
#endif
4747

4848
/**

0 commit comments

Comments
 (0)