From ade76e53de21b2c0e14e47373143ce17a9871032 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 28 Oct 2019 16:26:37 -0500 Subject: [PATCH] Fix A10M/A20M mixer display Co-Authored-By: 3Dangel <3dangel@users.noreply.github.com> --- Marlin/src/lcd/menu/menu_mixer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Marlin/src/lcd/menu/menu_mixer.cpp b/Marlin/src/lcd/menu/menu_mixer.cpp index 52348980df..c8484edc94 100644 --- a/Marlin/src/lcd/menu/menu_mixer.cpp +++ b/Marlin/src/lcd/menu/menu_mixer.cpp @@ -122,12 +122,10 @@ static uint8_t v_index; #if DUAL_MIXING_EXTRUDER void _lcd_draw_mix(const uint8_t y) { - char tmp[10]; // "100%_100%" - SETCURSOR(2, y); - lcd_put_u8str_P(GET_TEXT(MSG_MIX)); - SETCURSOR(LCD_WIDTH - 9, y); + char tmp[20]; // "100%_100%" sprintf_P(tmp, PSTR("%3d%% %3d%%"), int(mixer.mix[0]), int(mixer.mix[1])); - lcd_put_u8str(tmp); + SETCURSOR(2, y); lcd_put_u8str_P(GET_TEXT(MSG_MIX)); + SETCURSOR_RJ(9, y); lcd_put_u8str(tmp); } #endif