Skip to content

Commit 29da21d

Browse files
committed
Merge branch 'bugfix-2.1.x' into mike-config
* bugfix-2.1.x: (25 commits) [cron] Bump distribution date (2023-08-26) ✨ Mellow Fly E3 V2 (STM32F407VG) (MarlinFirmware#26081) 🚸 Fixes for ProUI, JyersUI, backlight, etc. (MarlinFirmware#26086) 🧑‍💻 Encapsulate ProUI G-code preview [cron] Bump distribution date (2023-08-25) 🧑‍💻 Adjust LCD string draw (MarlinFirmware#26154) [cron] Bump distribution date (2023-08-24) 📝 Thermistor info updates (MarlinFirmware#26202) [cron] Bump distribution date (2023-08-23) ✨ G-code 'T' report current tool (MarlinFirmware#26151) 🔧 Allow arbitrary BLOCK_BUFFER_SIZE 🔧 Fix Linear Leveling grid size sanity check (MarlinFirmware#26199) 🚸 Avoid LCD messages starting with "Error:" (MarlinFirmware#26164) 🩹 Fix FT Motion menu Back item (MarlinFirmware#26175) [cron] Bump distribution date (2023-08-22) ✅ Fix unused test 🐛 Fixes for G2/G3 arcs (MarlinFirmware#26170) [cron] Bump distribution date (2023-08-21) 🎨 FTDI cleanup [cron] Bump distribution date (2023-08-20) ...
2 parents aaea20e + 11f98ad commit 29da21d

90 files changed

Lines changed: 1367 additions & 849 deletions

Some content is hidden

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

Marlin/Configuration.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@
470470
* 13 : 100kΩ Hisens up to 300°C - for "Simple ONE" & "All In ONE" hotend - beta 3950, 1%
471471
* 14 : 100kΩ (R25), 4092K (beta25), 4.7kΩ pull-up, bed thermistor as used in Ender-5 S1
472472
* 15 : 100kΩ Calibrated for JGAurora A5 hotend
473+
* 17 : 100kΩ Dagoma NTC white thermistor
473474
* 18 : 200kΩ ATC Semitec 204GT-2 Dagoma.Fr - MKS_Base_DKU001327
474475
* 22 : 100kΩ GTM32 Pro vB - hotend - 4.7kΩ pullup to 3.3V and 220Ω to analog input
475476
* 23 : 100kΩ GTM32 Pro vB - bed - 4.7kΩ pullup to 3.3v and 220Ω to analog input
@@ -481,6 +482,7 @@
481482
* 68 : PT100 Smplifier board from Dyze Design
482483
* 70 : 100kΩ bq Hephestos 2
483484
* 75 : 100kΩ Generic Silicon Heat Pad with NTC100K MGB18-104F39050L32
485+
* 666 : 200kΩ Einstart S custom thermistor with 10k pullup.
484486
* 2000 : 100kΩ Ultimachine Rambo TDK NTCG104LH104KT1 NTC100K motherboard Thermistor
485487
*
486488
* ================================================================

Marlin/Configuration_adv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,9 +1746,10 @@
17461746

17471747
// SD Card Sorting options
17481748
#if ENABLED(SDCARD_SORT_ALPHA)
1749+
#define SDSORT_REVERSE false // Default to sorting file names in reverse order.
17491750
#define SDSORT_LIMIT 40 // Maximum number of sorted items (10-256). Costs 27 bytes each.
1750-
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
1751-
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 G-code.
1751+
#define SDSORT_FOLDERS -1 // -1=above 0=none 1=below
1752+
#define SDSORT_GCODE false // Enable G-code M34 to set sorting behaviors: M34 S<-1|0|1> F<-1|0|1>
17521753
#define SDSORT_USES_RAM false // Pre-allocate a static array for faster pre-sorting.
17531754
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
17541755
#define SDSORT_CACHE_NAMES false // Keep sorted items in RAM longer for speedy performance. Most expensive option.
@@ -2528,7 +2529,6 @@
25282529
// @section motion
25292530

25302531
// The number of linear moves that can be in the planner at once.
2531-
// The value of BLOCK_BUFFER_SIZE must be a power of 2 (e.g., 8, 16, 32)
25322532
#if ALL(HAS_MEDIA, DIRECT_STEPPING)
25332533
#define BLOCK_BUFFER_SIZE 8
25342534
#elif HAS_MEDIA

Marlin/Marlin.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Marlin Firmware
44
5-
(c) 2011-2020 MarlinFirmware
5+
(c) 2011-2023 MarlinFirmware
66
Portions of Marlin are (c) by their respective authors.
77
All code complies with GPLv2 and/or GPLv3
88

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 "2023-08-14"
44+
//#define STRING_DISTRIBUTION_DATE "2023-08-26"
4545

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

Marlin/src/core/boards.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@
459459
#define BOARD_CREALITY_F401RE 5245 // Creality CR4NS200141C13 (STM32F401RE) as found in the Ender-5 S1
460460
#define BOARD_BLACKPILL_CUSTOM 5246 // Custom board based on STM32F401CDU6.
461461
#define BOARD_I3DBEEZ9_V1 5247 // I3DBEEZ9 V1 (STM32F407ZG)
462+
#define BOARD_MELLOW_FLY_E3_V2 5248 // Mellow Fly E3 V2 (STM32F407VG)
462463

463464
//
464465
// ARM Cortex-M7

Marlin/src/core/language.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
#define STR_ERR_ARC_ARGS "G2/G3 bad parameters"
155155
#define STR_ERR_PROTECTED_PIN "Protected Pin"
156156
#define STR_ERR_M420_FAILED "Failed to enable Bed Leveling"
157-
#define STR_ERR_M428_TOO_FAR "Too far from reference point"
157+
#define STR_ERR_M428_TOO_FAR "Too far from MIN/MAX"
158158
#define STR_ERR_M303_DISABLED "PIDTEMP disabled"
159159
#define STR_M119_REPORT "Reporting endstop status"
160160
#define STR_ON "ON"
@@ -254,7 +254,7 @@
254254
#define STR_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
255255
#define STR_T_HEATING_FAILED "Heating failed"
256256
#define STR_T_THERMAL_RUNAWAY "Thermal Runaway"
257-
#define STR_T_MALFUNCTION "Thermal Malfunction"
257+
#define STR_T_THERMAL_MALFUNCTION "Thermal Malfunction"
258258
#define STR_T_MAXTEMP "MAXTEMP triggered"
259259
#define STR_T_MINTEMP "MINTEMP triggered"
260260
#define STR_ERR_PROBING_FAILED "Probing Failed"

Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ void unified_bed_leveling::shift_mesh_height() {
772772
const grid_count_t point_num = (GRID_MAX_POINTS - count) + 1;
773773
SERIAL_ECHOLNPGM("Probing mesh point ", point_num, "/", GRID_MAX_POINTS, ".");
774774
TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_POINT), point_num, int(GRID_MAX_POINTS)));
775+
TERN_(LCD_BACKLIGHT_TIMEOUT_MINS, ui.refresh_backlight_timeout());
775776

776777
#if HAS_MARLINUI_MENU
777778
if (ui.button_pressed()) {

Marlin/src/feature/caselight.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class CaseLight {
3131
public:
3232
static bool on;
33-
#if ENABLED(CASELIGHT_USES_BRIGHTNESS)
33+
#if CASELIGHT_USES_BRIGHTNESS
3434
static uint8_t brightness;
3535
#endif
3636

Marlin/src/feature/max7219.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ void Max7219::idle_tasks() {
706706

707707
#ifdef MAX7219_DEBUG_PLANNER_QUEUE
708708
static int16_t last_depth = 0;
709-
const int16_t current_depth = (head - tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1) & 0xF;
709+
const int16_t current_depth = BLOCK_MOD(head - tail + (BLOCK_BUFFER_SIZE)) & 0xF;
710710
if (current_depth != last_depth) {
711711
quantity16(MAX7219_DEBUG_PLANNER_QUEUE, last_depth, current_depth, &row_change_mask);
712712
last_depth = current_depth;

Marlin/src/gcode/control/T.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,21 @@
4141
* S1 Don't move the tool in XY after change
4242
*
4343
* For PRUSA_MMU2(S) and EXTENDABLE_EMU_MMU2(S)
44-
* T[n] Gcode to extrude at least 38.10 mm at feedrate 19.02 mm/s must follow immediately to load to extruder wheels.
45-
* T? Gcode to extrude shouldn't have to follow. Load to extruder wheels is done automatically.
44+
* T[n] G-code to extrude at least 38.10 mm at feedrate 19.02 mm/s must follow immediately to load to extruder wheels.
45+
* T? G-code to extrude shouldn't have to follow. Load to extruder wheels is done automatically.
4646
* Tx Same as T?, but nozzle doesn't have to be preheated. Tc requires a preheated nozzle to finish filament load.
4747
* Tc Load to nozzle after filament was prepared by Tc and nozzle is already heated.
4848
*/
4949
void GcodeSuite::T(const int8_t tool_index) {
5050

51+
#if HAS_MULTI_EXTRUDER
52+
// For 'T' with no parameter report the current tool.
53+
if (parser.string_arg && *parser.string_arg == '*') {
54+
SERIAL_ECHOLNPGM(STR_ACTIVE_EXTRUDER, active_extruder);
55+
return;
56+
}
57+
#endif
58+
5159
DEBUG_SECTION(log_T, "T", DEBUGGING(LEVELING));
5260
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("...(", tool_index, ")");
5361

0 commit comments

Comments
 (0)