Skip to content

Commit b761179

Browse files
authored
Merge branch 'MarlinFirmware:bugfix-2.1.x' into bugfix-2.1.x
2 parents c44dc76 + 430eedf commit b761179

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5650
-482
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# update-base-configs.yml
3+
# Generate new base config files if needed
4+
#
5+
6+
name: Update Base Configs
7+
8+
on:
9+
schedule:
10+
- cron: '0 */6 * * *'
11+
12+
jobs:
13+
bump_date:
14+
name: Update Base Configs
15+
if: github.repository == 'MarlinFirmware/Marlin'
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
21+
- name: Checkout bugfix-2.1.x
22+
uses: actions/checkout@v4
23+
with:
24+
ref: bugfix-2.1.x
25+
26+
- name: Update Base Configs
27+
run: make base-configs

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ help:
99
@echo "make marlin : Build marlin for the configured board"
1010
@echo "make format-pins -j : Reformat all pins files (-j for parallel execution)"
1111
@echo "make validate-pins -j : Validate all pins files, fails if any require reformatting"
12+
@echo "make base-configs : Regenerate the base configs in Marlin/src/inc"
1213
@echo "make tests-single-ci : Run a single test from inside the CI"
1314
@echo "make tests-single-local : Run a single test locally"
1415
@echo "make tests-single-local-docker : Run a single test locally, using docker"
@@ -102,3 +103,9 @@ format-pins: $(PINS)
102103
validate-pins: format-pins
103104
@echo "Validating pins files"
104105
@git diff --exit-code || (git status && echo "\nError: Pins files are not formatted correctly. Run \"make format-pins\" to fix.\n" && exit 1)
106+
107+
base-configs:
108+
@echo "Generating base configs"
109+
@python $(SCRIPTS_DIR)/makeBaseConfigs.py 2>/dev/null \
110+
&& git add Marlin/src/inc/BaseConfiguration.h Marlin/src/inc/BaseConfiguration_adv.h \
111+
&& git commit -m "[cron] Update Base Configurations"

Marlin/Configuration.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@
713713
* Use a physical model of the hotend to control temperature. When configured correctly this gives
714714
* better responsiveness and stability than PID and removes the need for PID_EXTRUSION_SCALING
715715
* and PID_FAN_SCALING. Enable MPC_AUTOTUNE and use M306 T to autotune the model.
716-
* @section mpctemp
716+
* @section mpc temp
717717
*/
718718
#if ENABLED(MPCTEMP)
719719
#define MPC_AUTOTUNE // Include a method to do MPC auto-tuning (~6.3K bytes of flash)
@@ -841,14 +841,16 @@
841841
// Lasko "MyHeat Personal Heater" (200w) modified with a Fotek SSR-10DA to control only the heating element
842842
// and placed inside the small Creality printer enclosure tent.
843843
//
844-
#define DEFAULT_chamberKp 37.04
845-
#define DEFAULT_chamberKi 1.40
844+
#define DEFAULT_chamberKp 37.04
845+
#define DEFAULT_chamberKi 1.40
846846
#define DEFAULT_chamberKd 655.17
847847
// M309 P37.04 I1.04 D655.17
848848

849849
// FIND YOUR OWN: "M303 E-2 C8 S50" to run autotune on the chamber at 50 degreesC for 8 cycles.
850850
#endif // PIDTEMPCHAMBER
851851

852+
// @section pid temp
853+
852854
#if ANY(PIDTEMP, PIDTEMPBED, PIDTEMPCHAMBER)
853855
//#define PID_OPENLOOP // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
854856
//#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay

Marlin/Configuration_adv.h

+14-6
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
* 2 = config.ini - File format for PlatformIO preprocessing.
4848
* 3 = schema.json - The entire configuration schema. (13 = pattern groups)
4949
* 4 = schema.yml - The entire configuration schema.
50+
* 5 = Config.h - Minimal configuration by popular demand.
5051
*/
51-
//#define CONFIG_EXPORT 2 // :[1:'JSON', 2:'config.ini', 3:'schema.json', 4:'schema.yml']
52+
//#define CONFIG_EXPORT 105 // :[1:'JSON', 2:'config.ini', 3:'schema.json', 4:'schema.yml', 5:'Config.h']
5253

5354
//===========================================================================
5455
//============================= Thermal Settings ============================
@@ -303,7 +304,7 @@
303304
* If you get false positives for "Thermal Runaway", increase
304305
* THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD
305306
*/
306-
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
307+
#if ALL(HAS_HOTEND, THERMAL_PROTECTION_HOTENDS)
307308
#define THERMAL_PROTECTION_PERIOD 40 // (seconds)
308309
#define THERMAL_PROTECTION_HYSTERESIS 4 // (°C)
309310

@@ -334,7 +335,7 @@
334335
/**
335336
* Thermal Protection parameters for the bed are just as above for hotends.
336337
*/
337-
#if ENABLED(THERMAL_PROTECTION_BED)
338+
#if TEMP_SENSOR_BED && ENABLED(THERMAL_PROTECTION_BED)
338339
#define THERMAL_PROTECTION_BED_PERIOD 20 // (seconds)
339340
#define THERMAL_PROTECTION_BED_HYSTERESIS 2 // (°C)
340341

@@ -348,7 +349,7 @@
348349
/**
349350
* Thermal Protection parameters for the heated chamber.
350351
*/
351-
#if ENABLED(THERMAL_PROTECTION_CHAMBER)
352+
#if TEMP_SENSOR_CHAMBER && ENABLED(THERMAL_PROTECTION_CHAMBER)
352353
#define THERMAL_PROTECTION_CHAMBER_PERIOD 20 // (seconds)
353354
#define THERMAL_PROTECTION_CHAMBER_HYSTERESIS 2 // (°C)
354355

@@ -362,7 +363,7 @@
362363
/**
363364
* Thermal Protection parameters for the laser cooler.
364365
*/
365-
#if ENABLED(THERMAL_PROTECTION_COOLER)
366+
#if TEMP_SENSOR_COOLER && ENABLED(THERMAL_PROTECTION_COOLER)
366367
#define THERMAL_PROTECTION_COOLER_PERIOD 10 // (seconds)
367368
#define THERMAL_PROTECTION_COOLER_HYSTERESIS 3 // (°C)
368369

@@ -2969,7 +2970,7 @@
29692970

29702971
#if AXIS_IS_TMC_CONFIG(X)
29712972
#define X_CURRENT 800 // (mA) RMS current. Multiply by 1.414 for peak current.
2972-
#define X_CURRENT_HOME X_CURRENT // (mA) RMS current for sensorless homing
2973+
#define X_CURRENT_HOME X_CURRENT // (mA) RMS current for homing. (Typically lower than *_CURRENT.)
29732974
#define X_MICROSTEPS 16 // 0..256
29742975
#define X_RSENSE 0.11
29752976
#define X_CHAIN_POS -1 // -1..0: Not chained. 1: MCU MOSI connected. 2: Next in chain, ...
@@ -3179,6 +3180,13 @@
31793180
//#define E7_HOLD_MULTIPLIER 0.5
31803181
#endif
31813182

3183+
/**
3184+
* Use the homing current for all probing. (e.g., Current may be reduced to the
3185+
* point where a collision makes the motor skip instead of damaging the bed,
3186+
* though this is unlikely to save delicate probes from being damaged.
3187+
*/
3188+
//#define PROBING_USE_CURRENT_HOME
3189+
31823190
// @section tmc/spi
31833191

31843192
/**

Marlin/Version.h

+1-1
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 "2024-08-13"
44+
//#define STRING_DISTRIBUTION_DATE "2024-08-16"
4545

4646
/**
4747
* Defines a generic printer name to be output to the LCD after booting Marlin.

Marlin/src/core/serial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ inline void print_xyz(const xyz_pos_t &xyz, FSTR_P const prefix=nullptr, FSTR_P
247247

248248
void print_xyze(LOGICAL_AXIS_ARGS_(const_float_t) FSTR_P const prefix=nullptr, FSTR_P const suffix=nullptr);
249249
inline void print_xyze(const xyze_pos_t &xyze, FSTR_P const prefix=nullptr, FSTR_P const suffix=nullptr) {
250-
print_xyze(LOGICAL_AXIS_ELEM_(xyze) prefix, suffix);
250+
print_xyze(LOGICAL_AXIS_ELEM_LC_(xyze) prefix, suffix);
251251
}
252252

253253
#define SERIAL_POS(SUFFIX,VAR) do { print_xyz(VAR, F(" " STRINGIFY(VAR) "="), F(" : " SUFFIX "\n")); }while(0)

0 commit comments

Comments
 (0)