Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow up to "🚸 Update ProUI Plot graph (#26539)" #26563

Merged
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
40fc582
update DWIN for additional ICON_'s
classicrocker883 Dec 23, 2023
7fe2177
update dwin_defines.h, add TJC option
classicrocker883 Dec 23, 2023
c4bc3ee
remove extra method impl
thinkyhead Dec 23, 2023
6a745ba
misc. cleanup
thinkyhead Dec 23, 2023
ae39db0
misc. style
thinkyhead Dec 23, 2023
8f47ef5
fix duplicate icons
thinkyhead Dec 23, 2023
2f02315
caps
thinkyhead Dec 23, 2023
ae0552a
ICON_ResumeEEPROM => ICON_ResetEEPROM
thinkyhead Dec 23, 2023
2bfc2d2
not all sets
thinkyhead Dec 23, 2023
784b5b2
updated icons
thinkyhead Dec 23, 2023
219e1da
add missing icons (prob. need optimization)
thinkyhead Dec 23, 2023
2db1845
update icon folders
thinkyhead Dec 23, 2023
3109a1e
add extra DWIN_SET's as icons-9
classicrocker883 Dec 24, 2023
588f609
update bedlevel_tools
classicrocker883 Dec 24, 2023
9282a17
oops, meant ">="
thinkyhead Dec 24, 2023
dc679eb
Not hosting old icon sets, only our unified set
thinkyhead Dec 24, 2023
59f83a1
Merge branch 'bugfix-2.1.x' into pr/26563
thinkyhead Dec 24, 2023
3bd285d
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Dec 25, 2023
b3e106b
small change - add spacing dwinui.h
classicrocker883 Dec 25, 2023
5da9177
update checkkey ID_xx
classicrocker883 Dec 25, 2023
7deb831
remove unused, add DACAI support (maybe not full support??)
classicrocker883 Dec 25, 2023
9a2aabe
fix error - dwinDrawBox undef
classicrocker883 Dec 25, 2023
253ce70
move MSG_PREHEAT_(count)
classicrocker883 Dec 25, 2023
84b20b2
Not the way to do this
thinkyhead Dec 25, 2023
a3fb87a
add new icons to script
thinkyhead Dec 25, 2023
620aa67
remove non-translated atoms
thinkyhead Dec 26, 2023
dc4bb42
quick spacing - dwin_api.h
classicrocker883 Dec 26, 2023
438d55c
Merge branch 'bugfix-2.1.x-Dec3' of https://github.com/classicrocker8…
classicrocker883 Dec 26, 2023
c072c5b
fix script
thinkyhead Dec 26, 2023
cc2fe31
Fix splitIco.py
thinkyhead Dec 26, 2023
392b968
update ICON_'s - arrange
classicrocker883 Dec 27, 2023
026a25c
Use u8g 0.5.2 for now
thinkyhead Dec 27, 2023
a020170
fix at 0.5.4
thinkyhead Dec 28, 2023
76697a8
Merge branch 'bugfix-2.1.x' into pr/26563
thinkyhead Dec 29, 2023
51f67d3
fix DWIN_ICO.py - was not grabbing all with Split
classicrocker883 Dec 29, 2023
3e766d7
update buildroot/share/dwin/bin README.md
classicrocker883 Dec 30, 2023
baab1f4
add option to center Title
classicrocker883 Dec 31, 2023
d10e6df
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 2, 2024
1c05caf
change DWIN popup img M0_M1.cpp
classicrocker883 Jan 4, 2024
af90529
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 4, 2024
e96988d
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 5, 2024
9750a59
fix extra space + ` => '
classicrocker883 Jan 5, 2024
dddf680
more comment fixings
classicrocker883 Jan 5, 2024
6af3eb6
revert comment fixings
classicrocker883 Jan 5, 2024
8dfb51a
fix for Plot Temp Graph
classicrocker883 Jan 5, 2024
c101ac6
Update Configuration_adv.h
classicrocker883 Jan 6, 2024
406891f
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 6, 2024
8b5c2ed
fix ReturnScreen while not printing
classicrocker883 Jan 6, 2024
5d114e0
fix for last commit, for real this time
classicrocker883 Jan 8, 2024
1f273bd
fix for ID_PlotProcess
classicrocker883 Jan 8, 2024
bc3ff2e
fix typo
classicrocker883 Jan 8, 2024
360256c
fix typo
classicrocker883 Jan 8, 2024
814c212
final fix for Plot graph
classicrocker883 Jan 8, 2024
945a0ec
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 9, 2024
4827f55
fix for error
classicrocker883 Jan 9, 2024
8943290
fix for indent warning
classicrocker883 Jan 9, 2024
40d37fa
add warning for ICON (.ICO)
classicrocker883 Jan 10, 2024
c9aab94
rename to dacaiIconShow
classicrocker883 Jan 10, 2024
b39cecf
rename ICON_Show
classicrocker883 Jan 10, 2024
13a2fb4
move PID case error
classicrocker883 Jan 10, 2024
3cef453
Merge remote-tracking branch 'upstream/bugfix-2.1.x' into bugfix-2.1.…
classicrocker883 Jan 10, 2024
627c4e3
flx error, typo
classicrocker883 Jan 11, 2024
f8ceb74
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 13, 2024
abd1131
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 16, 2024
96d5ef1
dwinPidTuning only exists if PROUI_PID_TUNE
thinkyhead Jan 19, 2024
b1bcf47
dwinDrawPIDMPCPopup needed for both
thinkyhead Jan 19, 2024
ab3357a
add DACAI compatibility
classicrocker883 Jan 20, 2024
172f3bc
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 20, 2024
628adbf
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 21, 2024
b6eaca4
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Jan 22, 2024
72ab6f7
remove PROUI_PID_TUNE, replace w/ HAS_PID_HEATING
classicrocker883 Jan 24, 2024
39b47f0
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Feb 9, 2024
4ee29a6
All E3V2 require Marlin-provided DWIN_SET
thinkyhead Feb 13, 2024
0b872af
tweak ico script / readme
thinkyhead Feb 13, 2024
d6efca3
Update dwin.h tempcontrol enum
classicrocker883 Feb 14, 2024
1bfa1b8
ExtUI layer for ProUI
thinkyhead Feb 13, 2024
dcf8d77
move lcd/u8g files
thinkyhead Feb 16, 2024
af7aef4
fix typos
thinkyhead Feb 18, 2024
221395c
axis_to_axis_t
thinkyhead Feb 18, 2024
29260e2
ExtUI:: prefix
thinkyhead Feb 18, 2024
9a30e4e
update pid_autotune_menu
classicrocker883 Feb 19, 2024
7e69486
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Feb 19, 2024
6cdf955
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marl…
classicrocker883 Mar 14, 2024
544d18f
fixes for errors - revert temperature.cpp 'allow_cold_extrud_override…
classicrocker883 Mar 15, 2024
fea3c72
fix for error: cannot convert
classicrocker883 Mar 15, 2024
61ffb26
fix for not declared
classicrocker883 Mar 15, 2024
1050cd8
multiple changes to change warnings and errors. ui_api.h comment to k…
classicrocker883 Mar 16, 2024
9022ce3
fix no such file, lcd/dogm/u8g
classicrocker883 Mar 16, 2024
486e24e
fix no such file, lcd/dogm/u8g pt.2
classicrocker883 Mar 16, 2024
9f9c407
revert '#include "lcdprint.h" - marlinui.h
classicrocker883 Mar 16, 2024
fa02992
typo in ftdi_eve_extui.cpp - cstr, fstr
classicrocker883 Mar 16, 2024
8552ed2
??fix for abl/G29.cpp??
classicrocker883 Mar 16, 2024
b91e9ae
fix no such file lcd/dogm/u8g
classicrocker883 Mar 16, 2024
ad5e16b
fix 'HAS_PLR_UI_FLAG', move #define
classicrocker883 Mar 16, 2024
e7df8df
fixes for DWIN and ProUI
classicrocker883 Mar 16, 2024
78de136
Also ia_creality
thinkyhead Mar 16, 2024
4569d1b
other IA updates
thinkyhead Mar 16, 2024
790388e
cleanup
thinkyhead Mar 16, 2024
368e5c6
update spacing, revert 'stopPrint', change stuff to ExtUI in ProUI
classicrocker883 Mar 17, 2024
0afd980
add chamber pid tuning
thinkyhead Mar 29, 2024
2385932
move timeout msg
thinkyhead Mar 29, 2024
42b362b
DGUS_MSG_TEMP_TOO_LOW => MSG_TEMP_TOO_LOW
thinkyhead Mar 29, 2024
4e93a15
oops
thinkyhead Mar 31, 2024
88da06b
Merge branch 'bugfix-2.1.x' into pr/26563
thinkyhead Mar 31, 2024
b16b711
Merge branch 'bugfix-2.1.x' into pr/26563
thinkyhead Mar 31, 2024
576e83b
merge followup
thinkyhead Mar 31, 2024
bfe3ca1
split result_t to pidresult_t / mpcresult_t
classicrocker883 Apr 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions Marlin/src/feature/pause.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ enum PauseMessage : char {
PAUSE_MESSAGE_PARKING,
PAUSE_MESSAGE_CHANGING,
PAUSE_MESSAGE_WAITING,
PAUSE_MESSAGE_UNLOAD,
PAUSE_MESSAGE_INSERT,
PAUSE_MESSAGE_LOAD,
PAUSE_MESSAGE_UNLOAD,
PAUSE_MESSAGE_PURGE,
PAUSE_MESSAGE_OPTION,
PAUSE_MESSAGE_RESUME,
PAUSE_MESSAGE_STATUS,
PAUSE_MESSAGE_HEAT,
PAUSE_MESSAGE_HEATING
PAUSE_MESSAGE_HEATING,
PAUSE_MESSAGE_STATUS
};

#if M600_PURGE_MORE_RESUMABLE
Expand Down
32 changes: 17 additions & 15 deletions Marlin/src/lcd/e3v2/common/dwin_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,23 @@ void dwinFrameClear(const uint16_t color) {
dwinSend(i);
}

// Draw a point
// color: point color
// width: point width 0x01-0x0F
// height: point height 0x01-0x0F
// x,y: upper left point
void dwinDrawPoint(uint16_t color, uint8_t width, uint8_t height, uint16_t x, uint16_t y) {
size_t i = 0;
dwinByte(i, 0x02);
dwinWord(i, color);
dwinByte(i, width);
dwinByte(i, height);
dwinWord(i, x);
dwinWord(i, y);
dwinSend(i);
}
#if DISABLED(TJC_DISPLAY)
// Draw a point
// color: point color
// width: point width 0x01-0x0F
// height: point height 0x01-0x0F
// x,y: upper left point
void dwinDrawPoint(uint16_t color, uint8_t width, uint8_t height, uint16_t x, uint16_t y) {
size_t i = 0;
dwinByte(i, 0x02);
dwinWord(i, color);
dwinByte(i, width);
dwinByte(i, height);
dwinWord(i, x);
dwinWord(i, y);
dwinSend(i);
}
#endif

// Draw a line
// color: Line segment color
Expand Down
6 changes: 5 additions & 1 deletion Marlin/src/lcd/e3v2/common/dwin_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ void dwinFrameClear(const uint16_t color);
// width: point width 0x01-0x0F
// height: point height 0x01-0x0F
// x,y: upper left point
void dwinDrawPoint(uint16_t color, uint8_t width, uint8_t height, uint16_t x, uint16_t y);
#if ENABLED(TJC_DISPLAY)
inline void dwinDrawPoint(uint16_t color, uint8_t width, uint8_t height, uint16_t x, uint16_t y) { dwinDrawBox(1, color, x, y, 1, 1); }
#else
void dwinDrawPoint(uint16_t color, uint8_t width, uint8_t height, uint16_t x, uint16_t y);
#endif

// Draw a line
// color: Line segment color
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/lcd/e3v2/common/dwin_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#define ICON_Motion 41
#define ICON_WriteEEPROM 42
#define ICON_ReadEEPROM 43
#define ICON_ResumeEEPROM 44
#define ICON_ResetEEPROM 44
#define ICON_Info 45

#define ICON_SetEndTemp 46
Expand Down Expand Up @@ -135,16 +135,16 @@

#define ICON_Folder ICON_More
#define ICON_AdvSet ICON_Language
#define ICON_HomeOffset ICON_AdvSet
#define ICON_HomeOffset ICON_PrintSize
#define ICON_HomeOffsetX ICON_StepX
#define ICON_HomeOffsetY ICON_StepY
#define ICON_HomeOffsetZ ICON_StepZ
#define ICON_ProbeOffset ICON_AdvSet
#define ICON_ProbeOffsetX ICON_StepX
#define ICON_ProbeOffsetY ICON_StepY
#define ICON_ProbeOffsetZ ICON_StepZ
#define ICON_PIDNozzle ICON_SetEndTemp
#define ICON_PIDbed ICON_SetBedTemp
#define ICON_PIDNozzle ICON_HotendTemp
#define ICON_PIDBed ICON_BedTemp
#define ICON_FWRetract ICON_StepE
#define ICON_FWRetLength ICON_StepE
#define ICON_FWRetSpeed ICON_Setspeed
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/e3v2/creality/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ void drawControlMenu() {
#if ENABLED(EEPROM_SETTINGS)
_TEMP_ICON(CONTROL_CASE_SAVE, ICON_WriteEEPROM, false);
_TEMP_ICON(CONTROL_CASE_LOAD, ICON_ReadEEPROM, false);
_TEMP_ICON(CONTROL_CASE_RESET, ICON_ResumeEEPROM, false);
_TEMP_ICON(CONTROL_CASE_RESET, ICON_ResetEEPROM, false);
#endif
}

Expand Down Expand Up @@ -2468,7 +2468,7 @@ void itemAdvBedPID(const uint8_t row) {
itemAreaCopy(145, 104, 167, 114, row, 27); // "PID"
#endif
}
drawMenuLine(row, ICON_PIDbed);
drawMenuLine(row, ICON_PIDBed);
}

#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/lcd/e3v2/jyersui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
#if ENABLED(ADVANCED_PAUSE_FEATURE)
case PREPARE_CHANGEFIL:
if (draw) {
drawMenuItem(row, ICON_ResumeEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE)
drawMenuItem(row, ICON_ResetEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE)
#if ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
, nullptr, true
#endif
Expand Down Expand Up @@ -1766,7 +1766,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
break;
case CHANGEFIL_CHANGE:
if (draw)
drawMenuItem(row, ICON_ResumeEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE));
drawMenuItem(row, ICON_ResetEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE));
else {
if (thermalManager.targetTooColdToExtrude(0))
popupHandler(Popup_ETemp);
Expand Down Expand Up @@ -3449,7 +3449,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
break;
case LEVELING_SETTINGS_PLANE:
if (draw)
drawMenuItem(row, ICON_ResumeEEPROM, F("Convert Mesh to Plane"));
drawMenuItem(row, ICON_ResetEEPROM, F("Convert Mesh to Plane"));
else {
if (mesh_conf.createPlaneFromMesh()) break;
gcode.process_subcommands_now(F("M420 S1"));
Expand Down Expand Up @@ -3594,7 +3594,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
#if ENABLED(AUTO_BED_LEVELING_UBL)
case LEVELING_M_UNDEF:
if (draw)
drawMenuItem(row, ICON_ResumeEEPROM, F("Clear Point Value"));
drawMenuItem(row, ICON_ResetEEPROM, F("Clear Point Value"));
else {
mesh_conf.manualValueUpdate(true);
redrawMenu(false);
Expand Down Expand Up @@ -3924,7 +3924,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
#if ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
case TUNE_CHANGEFIL:
if (draw)
drawMenuItem(row, ICON_ResumeEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE));
drawMenuItem(row, ICON_ResetEEPROM, GET_TEXT_F(MSG_FILAMENTCHANGE));
else
popupHandler(Popup_ConfFilChange);
break;
Expand Down
65 changes: 35 additions & 30 deletions Marlin/src/lcd/e3v2/proui/bedlevel_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ bool drawing_mesh = false;
struct linear_fit_data lsf_results;
incremental_LSF_reset(&lsf_results);
GRID_LOOP(x, y) {
if (!isnan(bedlevel.z_values[x][y])) {
const float z = bedlevel.z_values[x][y];
if (!isnan(z)) {
xy_pos_t rpos = { bedlevel.get_mesh_x(x), bedlevel.get_mesh_y(y) };
incremental_LSF(&lsf_results, rpos, bedlevel.z_values[x][y]);
incremental_LSF(&lsf_results, rpos, z);
}
}

Expand Down Expand Up @@ -232,46 +233,50 @@ bool BedLevelTools::meshValidate() {
const auto end_x_px = start_x_px + cell_width_px - 1 - gridline_width;
const auto start_y_px = padding_y_top + ((GRID_MAX_POINTS_Y) - y - 1) * cell_height_px;
const auto end_y_px = start_y_px + cell_height_px - 1 - gridline_width;
dwinDrawRectangle(1, // RGB565 colors: http://www.barth-dev.de/online/rgb565-color-picker/
isnan(bedlevel.z_values[x][y]) ? COLOR_GREY : ( // gray if undefined
(bedlevel.z_values[x][y] < 0 ?
(uint16_t)round(0x1F * -bedlevel.z_values[x][y] / rmax) << 11 : // red if mesh point value is negative
(uint16_t)round(0x3F * bedlevel.z_values[x][y] / rmax) << 5) | // green if mesh point value is positive
_MIN(0x1F, (((uint8_t)abs(bedlevel.z_values[x][y]) / 10) * 4))), // + blue stepping for every mm
start_x_px, start_y_px, end_x_px, end_y_px
const float z = bedlevel.z_values[x][y];
const uint16_t color = isnan(z) ? COLOR_GREY : ( // Gray if undefined
(z < 0 ? uint16_t(round(0x1F * -z / rmax)) << 11 // Red for negative mesh point
: uint16_t(round(0x3F * z / rmax)) << 5) // Green for positive mesh point
| _MIN(0x1F, (((uint8_t)abs(z) / 10) * 4)) // + Blue stepping for every mm
);

dwinDrawRectangle(1, color, start_x_px, start_y_px, end_x_px, end_y_px);

safe_delay(10);
LCD_SERIAL.flushTX();

// Draw value text on
if (!viewer_print_value) continue;

const uint8_t fs = DWINUI::fontWidth(meshfont);
if (viewer_print_value) {
const int8_t offset_y = cell_height_px / 2 - fs;
if (isnan(bedlevel.z_values[x][y])) { // undefined
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px + cell_width_px / 2 - 5, start_y_px + offset_y, F("X"));
}
else { // has value
MString<12> msg;
if ((GRID_MAX_POINTS_X) < TERN(TJC_DISPLAY, 8, 10))
msg.set(p_float_t(abs(bedlevel.z_values[x][y]), 2));
else
msg.setf(F("%02i"), uint16_t(abs(bedlevel.z_values[x][y] - int16_t(bedlevel.z_values[x][y])) * 100));
const int8_t offset_x = cell_width_px / 2 - (fs / 2) * msg.length() - 2;
if ((GRID_MAX_POINTS_X) >= TERN(TJC_DISPLAY, 8, 10))
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px - 2 + offset_x, start_y_px + offset_y, F("."));
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px + 1 + offset_x, start_y_px + offset_y, msg);
}
safe_delay(10);
LCD_SERIAL.flushTX();
const int8_t offset_y = cell_height_px / 2 - fs;
const float z = bedlevel.z_values[x][y];
if (isnan(z)) { // undefined
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px + cell_width_px / 2 - 5, start_y_px + offset_y, F("X"));
}
}
else { // has value
MString<12> msg;
constexpr bool is_wide = (GRID_MAX_POINTS_X) < TERN(TJC_DISPLAY, 8, 10);
if (is_wide)
msg.setf(F("%02i"), uint16_t(z * 100) % 100);
else
msg.set(p_float_t(abs(z), 2));
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved
const int8_t offset_x = cell_width_px / 2 - (fs / 2) * msg.length() - 2;
if (is_wide)
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px - 2 + offset_x, start_y_px + offset_y, F("."));
dwinDrawString(false, meshfont, COLOR_WHITE, COLOR_BG_BLUE, start_x_px + 1 + offset_x, start_y_px + offset_y, msg);
}

safe_delay(10);
LCD_SERIAL.flushTX();

} // GRID_LOOP
}

void BedLevelTools::setMeshViewerStatus() { // TODO: draw gradient with values as a legend instead
float v_max = abs(getMaxValue()), v_min = abs(getMinValue()), rmax = _MAX(v_min, v_max), rmin = _MIN(v_min, v_max);
if (rmax > 3e+10f) rmax = 0.0000001;
if (rmin > 3e+10f) rmin = 0.0000001;
if (rmax > 3e+10f) rmax = 0.0000001f;
if (rmin > 3e+10f) rmin = 0.0000001f;
ui.set_status(&MString<47>(F("Red "), p_float_t(-rmax, 3), F("..0.."), p_float_t(rmin, 3), F(" Green")));
drawing_mesh = false;
}
Expand Down
Loading