Add multi-extruder condition
This commit is contained in:
@@ -242,8 +242,10 @@ void lv_draw_printing(void) {
|
||||
#endif // if 1
|
||||
|
||||
lv_obj_set_pos(buttonExt1, 205, 136);
|
||||
if (EXTRUDERS == 2)
|
||||
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
lv_obj_set_pos(buttonExt2, 350, 136);
|
||||
#endif
|
||||
|
||||
#if HAS_HEATED_BED
|
||||
lv_obj_set_pos(buttonBedstate, 205, 186);
|
||||
@@ -275,11 +277,11 @@ void lv_draw_printing(void) {
|
||||
lv_obj_set_style(labelExt1, &tft_style_label_rel);
|
||||
lv_obj_set_pos(labelExt1, 250, 146);
|
||||
|
||||
if (EXTRUDERS == 2) {
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
labelExt2 = lv_label_create(scr, NULL);
|
||||
lv_obj_set_style(labelExt2, &tft_style_label_rel);
|
||||
lv_obj_set_pos(labelExt2, 395, 146);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAS_HEATED_BED
|
||||
labelBed = lv_label_create(scr, NULL);
|
||||
@@ -344,11 +346,11 @@ void disp_ext_temp() {
|
||||
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.temp_hotend[0].celsius, (int)thermalManager.temp_hotend[0].target);
|
||||
lv_label_set_text(labelExt1, public_buf_l);
|
||||
|
||||
if (EXTRUDERS == 2) {
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
ZERO(public_buf_l);
|
||||
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.temp_hotend[1].celsius, (int)thermalManager.temp_hotend[1].target);
|
||||
lv_label_set_text(labelExt2, public_buf_l);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void disp_bed_temp() {
|
||||
|
||||
Reference in New Issue
Block a user