Skip to content

Commit

Permalink
Save 3 bytes of SRAM !
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 17, 2019
1 parent ec14a66 commit 7e81834
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Marlin/src/lcd/menu/menu_ubl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ static int16_t ubl_storage_slot = 0,
custom_hotend_temp = 190,
side_points = 3,
ubl_fillin_amount = 5,
ubl_height_amount = 1,
n_edit_pts = 1,
x_plot = 0,
y_plot = 0;
ubl_height_amount = 1;

static uint8_t n_edit_pts = 1, x_plot = 0, y_plot = 0;

#if HAS_HEATED_BED
static int16_t custom_bed_temp = 50;
Expand Down Expand Up @@ -423,7 +422,7 @@ void _lcd_ubl_map_lcd_edit_cmd() {
char ubl_lcd_gcode[50], str[10], str2[10];
dtostrf(pgm_read_float(&ubl._mesh_index_to_xpos[x_plot]), 0, 2, str);
dtostrf(pgm_read_float(&ubl._mesh_index_to_ypos[y_plot]), 0, 2, str2);
snprintf_P(ubl_lcd_gcode, sizeof(ubl_lcd_gcode), PSTR("G29 P4 X%s Y%s R%i"), str, str2, n_edit_pts);
snprintf_P(ubl_lcd_gcode, sizeof(ubl_lcd_gcode), PSTR("G29 P4 X%s Y%s R%i"), str, str2, int(n_edit_pts));
lcd_enqueue_one_now(ubl_lcd_gcode);
}

Expand Down

0 comments on commit 7e81834

Please sign in to comment.