Skip to content

Commit

Permalink
Fix slicer estimate when switching between printers
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Mar 25, 2024
1 parent ea8a6b5 commit e4dd146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CYD-Klipper/src/ui/switch_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
#include "../core/lv_setup.h"
#include "../core/macros_query.h"
#include "../core/screen_driver.h"
#include "../core/data_setup.h"

void switch_printer(int index)
{
set_printer_config_index(index);
set_color_scheme();
set_invert_display();
printer.slicer_estimated_print_time_s = 0;
}

static void btn_switch_printer(lv_event_t *e){
Expand Down

0 comments on commit e4dd146

Please sign in to comment.