@@ -471,15 +471,6 @@ void Draw_Back_First(const bool is_sel=true) {
471
471
if (is_sel) Draw_Menu_Cursor (0 );
472
472
}
473
473
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
-
483
474
//
484
475
// Draw Menus
485
476
//
@@ -1296,15 +1287,6 @@ void Goto_MainMenu() {
1296
1287
TERN (HAS_ONESTEP_LEVELING, ICON_Leveling, ICON_StartInfo)();
1297
1288
}
1298
1289
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
-
1308
1290
void HMI_Plan_Move (const feedRate_t fr_mm_s) {
1309
1291
if (!planner.is_full ()) {
1310
1292
planner.synchronize ();
@@ -4086,6 +4068,13 @@ void HMI_Init() {
4086
4068
HMI_SetLanguage ();
4087
4069
}
4088
4070
4071
+ void DWIN_InitScreen () {
4072
+ Encoder_Configuration ();
4073
+ HMI_Init ();
4074
+ HMI_SetLanguageCache ();
4075
+ HMI_StartFrame (true );
4076
+ }
4077
+
4089
4078
void DWIN_Update () {
4090
4079
EachMomentUpdate (); // Status update
4091
4080
HMI_SDCardUpdate (); // SD card update
0 commit comments