Skip to content

Commit

Permalink
E3V2/JyersUI: update flow rate using lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
blazewicz committed Dec 4, 2022
1 parent 7ee0b63 commit 458ffac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Marlin/src/lcd/e3v2/jyersui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2302,7 +2302,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
Draw_Float(planner.flow_percentage[0], row, false, 1);
}
else
Modify_Value(planner.flow_percentage[0], MIN_FLOW_RATE, MAX_FLOW_RATE, 1);
Modify_Value(planner.flow_percentage[0], MIN_FLOW_RATE, MAX_FLOW_RATE, 1, [](){planner.refresh_e_factor(0);});
break;
#endif
}
Expand Down Expand Up @@ -3740,7 +3740,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
Draw_Float(planner.flow_percentage[0], row, false, 1);
}
else
Modify_Value(planner.flow_percentage[0], MIN_FLOW_RATE, MAX_FLOW_RATE, 1);
Modify_Value(planner.flow_percentage[0], MIN_FLOW_RATE, MAX_FLOW_RATE, 1, [](){planner.refresh_e_factor(0);});
break;
case TUNE_HOTEND:
if (draw) {
Expand Down Expand Up @@ -4226,8 +4226,6 @@ void CrealityDWINClass::Value_Control() {
case LevelManual: mesh_conf.manual_mesh_move(selection == LEVELING_M_OFFSET); break;
#endif
}
if (valuepointer == &planner.flow_percentage[0])
planner.refresh_e_factor(0);
if (funcpointer) funcpointer();
return;
}
Expand Down

0 comments on commit 458ffac

Please sign in to comment.