@@ -471,15 +471,6 @@ void Draw_Back_First(const bool is_sel=true) {
471471 if (is_sel) Draw_Menu_Cursor (0 );
472472}
473473
474- template <typename T>
475- inline bool Apply_Encoder (const EncoderState &encoder_diffState, T &valref) {
476- if (encoder_diffState == ENCODER_DIFF_CW)
477- valref += EncoderRate.encoderMoveValue ;
478- else if (encoder_diffState == ENCODER_DIFF_CCW)
479- valref -= EncoderRate.encoderMoveValue ;
480- return encoder_diffState == ENCODER_DIFF_ENTER;
481- }
482-
483474//
484475// Draw Menus
485476//
@@ -1296,15 +1287,6 @@ void Goto_MainMenu() {
12961287 TERN (HAS_ONESTEP_LEVELING, ICON_Leveling, ICON_StartInfo)();
12971288}
12981289
1299- inline EncoderState get_encoder_state () {
1300- static millis_t Encoder_ms = 0 ;
1301- const millis_t ms = millis ();
1302- if (PENDING (ms, Encoder_ms)) return ENCODER_DIFF_NO;
1303- const EncoderState state = Encoder_ReceiveAnalyze ();
1304- if (state != ENCODER_DIFF_NO) Encoder_ms = ms + ENCODER_WAIT_MS;
1305- return state;
1306- }
1307-
13081290void HMI_Plan_Move (const feedRate_t fr_mm_s) {
13091291 if (!planner.is_full ()) {
13101292 planner.synchronize ();
@@ -4086,6 +4068,13 @@ void HMI_Init() {
40864068 HMI_SetLanguage ();
40874069}
40884070
4071+ void DWIN_InitScreen () {
4072+ Encoder_Configuration ();
4073+ HMI_Init ();
4074+ HMI_SetLanguageCache ();
4075+ HMI_StartFrame (true );
4076+ }
4077+
40894078void DWIN_Update () {
40904079 EachMomentUpdate (); // Status update
40914080 HMI_SDCardUpdate (); // SD card update
0 commit comments