@@ -265,14 +265,14 @@ class TextScroller {
265
265
#if ENABLED(AUTO_BED_LEVELING_UBL)
266
266
uint8_t tilt_grid = 1 ;
267
267
268
- void manual_value_update (bool undefined=false ) {
268
+ void manualValueUpdate (bool undefined=false ) {
269
269
gcode.process_subcommands_now (
270
270
TS (F (" M421I" ), mesh_x, ' J' , mesh_y, ' Z' , p_float_t (current_position.z , 3 ), undefined ? " N" : " " )
271
271
);
272
272
planner.synchronize ();
273
273
}
274
274
275
- bool create_plane_from_mesh () {
275
+ bool createPlaneFromMesh () {
276
276
struct linear_fit_data lsf_results;
277
277
incremental_LSF_reset (&lsf_results);
278
278
GRID_LOOP (x, y) {
@@ -312,7 +312,7 @@ class TextScroller {
312
312
313
313
#else
314
314
315
- void manual_value_update () {
315
+ void manualValueUpdate () {
316
316
gcode.process_subcommands_now (
317
317
TS (F (" G29I" ), mesh_x, ' J' , mesh_y, ' Z' , p_float_t (current_position.z , 3 ))
318
318
);
@@ -340,7 +340,7 @@ class TextScroller {
340
340
}
341
341
}
342
342
343
- float get_max_value () {
343
+ float getMaxValue () {
344
344
float max = __FLT_MIN__;
345
345
GRID_LOOP (x, y) {
346
346
if (!isnan (bedlevel.z_values [x][y]) && bedlevel.z_values [x][y] > max)
@@ -349,7 +349,7 @@ class TextScroller {
349
349
return max;
350
350
}
351
351
352
- float get_min_value () {
352
+ float getMinValue () {
353
353
float min = __FLT_MAX__;
354
354
GRID_LOOP (x, y) {
355
355
if (!isnan (bedlevel.z_values [x][y]) && bedlevel.z_values [x][y] < min)
@@ -363,7 +363,7 @@ class TextScroller {
363
363
const uint16_t total_width_px = DWIN_WIDTH - padding_x - padding_x,
364
364
cell_width_px = total_width_px / (GRID_MAX_POINTS_X),
365
365
cell_height_px = total_width_px / (GRID_MAX_POINTS_Y);
366
- const float v_max = abs (get_max_value ()), v_min = abs (get_min_value ()), range = _MAX (v_min, v_max);
366
+ const float v_max = abs (getMaxValue ()), v_min = abs (getMinValue ()), range = _MAX (v_min, v_max);
367
367
368
368
// Clear background from previous selection and select new square
369
369
dwinDrawRectangle (1 , COLOR_BG_BLACK, _MAX (0 , padding_x - gridline_width), _MAX (0 , padding_y_top - gridline_width), padding_x + total_width_px, padding_y_top + total_width_px);
@@ -418,8 +418,8 @@ class TextScroller {
418
418
419
419
void setMeshViewerStatus () { // TODO: draw gradient with values as a legend instead
420
420
float v1, v2,
421
- v_min = abs (get_min_value ()),
422
- v_max = abs (get_max_value ());
421
+ v_min = abs (getMinValue ()),
422
+ v_max = abs (getMaxValue ());
423
423
if (viewer_asymmetric_range) {
424
424
if (v_min > 3e+10F ) v_min = 0.0000001 ;
425
425
if (v_max > 3e+10F ) v_max = 0.0000001 ;
@@ -3437,7 +3437,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
3437
3437
if (draw)
3438
3438
drawMenuItem (row, ICON_ResumeEEPROM, F (" Convert Mesh to Plane" ));
3439
3439
else {
3440
- if (mesh_conf.create_plane_from_mesh ()) break ;
3440
+ if (mesh_conf.createPlaneFromMesh ()) break ;
3441
3441
gcode.process_subcommands_now (F (" M420 S1" ));
3442
3442
planner.synchronize ();
3443
3443
audioFeedback (true );
@@ -3582,7 +3582,7 @@ void JyersDWIN::menuItemHandler(const uint8_t menu, const uint8_t item, bool dra
3582
3582
if (draw)
3583
3583
drawMenuItem (row, ICON_ResumeEEPROM, F (" Clear Point Value" ));
3584
3584
else {
3585
- mesh_conf.manual_value_update (true );
3585
+ mesh_conf.manualValueUpdate (true );
3586
3586
redrawMenu (false );
3587
3587
}
3588
3588
break ;
0 commit comments