Skip to content

Commit 06c644d

Browse files
⛙ Merge w/Marlin
2 parents 87226d4 + 7cc8b15 commit 06c644d

74 files changed

Lines changed: 537 additions & 231 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,10 +2793,10 @@
27932793
*
27942794
* Select the language to display on the LCD. These languages are available:
27952795
*
2796-
* en, an, bg, ca, cz, da, de, el, el_CY, es, eu, fi, fr, gl, hr, hu, it,
2796+
* en, an, bg, ca, cz, da, de, el, el_CY, es, eu, fi, fr, gl, hg, hr, hu, id, it,
27972797
* jp_kana, ko_KR, nl, pl, pt, pt_br, ro, ru, sk, sv, tr, uk, vi, zh_CN, zh_TW
27982798
*
2799-
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek (Greece)', 'el_CY':'Greek (Cyprus)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'hu':'Hungarian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ro':'Romanian', 'ru':'Russian', 'sk':'Slovak', 'sv':'Swedish', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)' }
2799+
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek (Greece)', 'el_CY':'Greek (Cyprus)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hg':'Hinglish (Hindi-Latin)', 'hr':'Croatian', 'hu':'Hungarian', 'id':'Indonesian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ro':'Romanian', 'ru':'Russian', 'sk':'Slovak', 'sv':'Swedish', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)' }
28002800
*/
28012801
#define LCD_LANGUAGE en
28022802

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 "2026-03-01"
44+
//#define STRING_DISTRIBUTION_DATE "2026-03-09"
4545

4646
#define STRING_DISTRIBUTION_DATE __DATE__
4747
#define STRING_DISTRIBUTION_TIME __TIME__

Marlin/src/core/language.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
// fr French
5858
// fr_na French without accents (DWIN T5UID1 touchscreen)
5959
// gl Galician
60+
// hg Hinglish (Hindi in Latin script)
6061
// hr Croatian
6162
// hu Hungarian
63+
// id Indonesian (Bahasa)
6264
// it Italian
6365
// jp_kana Japanese
6466
// ko_KR Korean (South Korea)

Marlin/src/feature/bedlevel/abl/bbl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void LevelingBilinear::reset() {
110110
* Set grid spacing and start position
111111
*/
112112
void LevelingBilinear::set_grid(const xy_pos_t& _grid_spacing, const xy_pos_t& _grid_start) {
113-
#if ENABLED(PROUI_MESH_EDIT)
113+
#if HAS_PROUI_MESH_EDIT
114114
UNUSED(_grid_spacing); UNUSED(_grid_start);
115115
grid_start = mesh_min;
116116
grid_spacing.set(MESH_X_DIST, MESH_Y_DIST);

Marlin/src/feature/bedlevel/abl/bbl.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323

2424
#include "../../../inc/MarlinConfigPre.h"
2525

26-
#if ENABLED(PROUI_MESH_EDIT)
27-
#define MESH_X_DIST ((mesh_max.x - mesh_min.x) / (GRID_MAX_CELLS_X))
28-
#define MESH_Y_DIST ((mesh_max.y - mesh_min.y) / (GRID_MAX_CELLS_Y))
29-
#endif
30-
3126
class LevelingBilinear {
3227
public:
3328
static bed_mesh_t z_values;

Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ enum MeshLevelingState : char {
3434
MeshReset // G29 S5
3535
};
3636

37-
#define MESH_X_DIST ((mesh_max.x - mesh_min.x) / (GRID_MAX_CELLS_X))
38-
#define MESH_Y_DIST ((mesh_max.y - mesh_min.y) / (GRID_MAX_CELLS_Y))
39-
4037
class mesh_bed_leveling {
4138
public:
4239
static float z_offset;
@@ -52,12 +49,12 @@ class mesh_bed_leveling {
5249

5350
mesh_bed_leveling();
5451

52+
static void reset();
53+
5554
static void initialize();
5655

5756
static void report_mesh();
5857

59-
static void reset();
60-
6158
FORCE_INLINE static bool has_mesh() {
6259
GRID_LOOP(x, y) if (z_values[x][y]) return true;
6360
return false;
@@ -83,11 +80,11 @@ class mesh_bed_leveling {
8380
static float get_mesh_y(const uint8_t j) { return index_to_ypos[j]; }
8481

8582
static uint8_t cell_index_x(const float x) {
86-
int8_t cx = (x - mesh_min.x) * RECIPROCAL(MESH_X_DIST);
83+
const int8_t cx = (x - mesh_min.x) * RECIPROCAL(MESH_X_DIST);
8784
return constrain(cx, 0, GRID_MAX_CELLS_X - 1);
8885
}
8986
static uint8_t cell_index_y(const float y) {
90-
int8_t cy = (y - mesh_min.y) * RECIPROCAL(MESH_Y_DIST);
87+
const int8_t cy = (y - mesh_min.y) * RECIPROCAL(MESH_Y_DIST);
9188
return constrain(cy, 0, GRID_MAX_CELLS_Y - 1);
9289
}
9390
static xy_uint8_t cell_indexes(const float x, const float y) {
@@ -96,11 +93,11 @@ class mesh_bed_leveling {
9693
static xy_uint8_t cell_indexes(const xy_pos_t &xy) { return cell_indexes(xy.x, xy.y); }
9794

9895
static int8_t probe_index_x(const float x) {
99-
int8_t px = (x - mesh_min.x + 0.5f * (MESH_X_DIST)) * RECIPROCAL(MESH_X_DIST);
96+
const int8_t px = (x - mesh_min.x + 0.5f * (MESH_X_DIST)) * RECIPROCAL(MESH_X_DIST);
10097
return WITHIN(px, 0, (GRID_MAX_POINTS_X) - 1) ? px : -1;
10198
}
10299
static int8_t probe_index_y(const float y) {
103-
int8_t py = (y - mesh_min.y + 0.5f * (MESH_Y_DIST)) * RECIPROCAL(MESH_Y_DIST);
100+
const int8_t py = (y - mesh_min.y + 0.5f * (MESH_Y_DIST)) * RECIPROCAL(MESH_Y_DIST);
104101
return WITHIN(py, 0, (GRID_MAX_POINTS_Y) - 1) ? py : -1;
105102
}
106103
static xy_int8_t probe_indexes(const float x, const float y) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int8_t unified_bed_leveling::storage_slot;
6767

6868
bed_mesh_t unified_bed_leveling::z_values;
6969

70-
#if DISABLED(DWIN_LCD_PROUI)
70+
#if NONE(PROUI_EX, HAS_PROUI_MESH_EDIT, PROUI_GRID_PNTS)
7171
#define _GRIDPOS(A,N) (MESH_MIN_##A + N * (MESH_##A##_DIST))
7272

7373
const float

Marlin/src/feature/bedlevel/ubl/ubl.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ enum MeshPointType : char { INVALID, REAL, SET_IN_BITMAP, CLOSEST };
3838

3939
struct mesh_index_pair;
4040

41-
#define MESH_X_DIST ((mesh_max.x - mesh_min.x) / (GRID_MAX_CELLS_X))
42-
#define MESH_Y_DIST ((mesh_max.y - mesh_min.y) / (GRID_MAX_CELLS_Y))
43-
4441
#if ENABLED(OPTIMIZED_MESH_STORAGE)
4542
#if ANY(PROUI_EX, PROUI_GRID_PNTS)
4643
typedef int16_t mesh_store_t[GRID_LIMIT][GRID_LIMIT];
@@ -121,7 +118,7 @@ class unified_bed_leveling {
121118
static void set_mesh_from_store(const mesh_store_t &stored_values, bed_mesh_t &out_values);
122119
#endif
123120

124-
#if DISABLED(DWIN_LCD_PROUI)
121+
#if NONE(PROUI_EX, HAS_PROUI_MESH_EDIT, PROUI_GRID_PNTS)
125122
static const float _mesh_index_to_xpos[GRID_MAX_POINTS_X],
126123
_mesh_index_to_ypos[GRID_MAX_POINTS_Y];
127124
#endif
@@ -294,12 +291,12 @@ class unified_bed_leveling {
294291

295292
static constexpr float get_z_offset() { return 0.0f; }
296293

297-
#if !ALL(PROUI_EX, PROUI_MESH_EDIT) || DISABLED(DWIN_LCD_PROUI)
294+
#if !ALL(PROUI_EX, HAS_PROUI_MESH_EDIT) || DISABLED(DWIN_LCD_PROUI)
298295
static float _get_mesh_x(const uint8_t i) { return mesh_min.x + i * (MESH_X_DIST); }
299296
static float _get_mesh_y(const uint8_t j) { return mesh_min.y + j * (MESH_Y_DIST); }
300297
#endif
301298

302-
#if ALL(PROUI_EX, PROUI_MESH_EDIT)
299+
#if ALL(PROUI_EX, HAS_PROUI_MESH_EDIT)
303300
static float get_mesh_x(const uint8_t i);
304301
static float get_mesh_y(const uint8_t j);
305302
#elif ENABLED(DWIN_LCD_PROUI)

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,10 @@ void unified_bed_leveling::shift_mesh_height(const float zoffs) {
799799
DEBUG_ECHOLNPGM("Probing mesh point ", point_num, "/", GRID_MAX_POINTS, ".");
800800
TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_POINT), point_num, int(GRID_MAX_POINTS)));
801801
TERN_(HAS_BACKLIGHT_TIMEOUT, ui.refresh_backlight_timeout());
802-
TERN_(DWIN_LCD_PROUI, if (!HMI_flag.cancel_lev) { DWIN_RedrawScreen(); } else { break; })
802+
803+
#if ENABLED(DWIN_LCD_PROUI)
804+
if (!HMI_flag.cancel_lev) DWIN_RedrawScreen(); else break;
805+
#endif
803806

804807
#if HAS_MARLINUI_MENU
805808
if (ui.button_pressed()) {

Marlin/src/gcode/bedlevel/abl/G29.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ G29_TYPE GcodeSuite::G29() {
821821

822822
abl.reenable = false; // Don't re-enable after modifying the mesh
823823
marlin.idle_no_sleep();
824+
824825
if (TERN0(DWIN_LCD_PROUI, HMI_flag.cancel_lev)) break;
825826

826827
} // inner

0 commit comments

Comments
 (0)