ソースを参照

🚑️ Fix DWIN_CompletedLeveling (#22851)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Steven Haigh 2年前
コミット
c6ceac9067
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更5行の追加5行の削除
  1. 1
    1
      Marlin/src/lcd/e3v2/enhanced/dwin.cpp
  2. 4
    4
      Marlin/src/lcd/e3v2/jyersui/dwin.cpp

+ 1
- 1
Marlin/src/lcd/e3v2/enhanced/dwin.cpp ファイルの表示

@@ -1665,7 +1665,7 @@ void DWIN_MeshLevelingStart() {
1665 1665
   #endif
1666 1666
 }
1667 1667
 
1668
-void DWIN_CompletedLeveling() { DWIN_MeshViewer(); }
1668
+void DWIN_CompletedLeveling() { TERN_(HAS_MESH, DWIN_MeshViewer()); }
1669 1669
 
1670 1670
 #if HAS_MESH
1671 1671
   void DWIN_MeshUpdate(const int8_t xpos, const int8_t ypos, const float zval) {

+ 4
- 4
Marlin/src/lcd/e3v2/jyersui/dwin.cpp ファイルの表示

@@ -3246,7 +3246,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
3246 3246
             break;
3247 3247
           case LEVELING_VIEW:
3248 3248
             if (draw)
3249
-              Draw_Menu_Item(row, ICON_Mesh, GET_TEXT_F(MSG_MESH_VIEW), nullptr, true);
3249
+              Draw_Menu_Item(row, ICON_Mesh, GET_TEXT(MSG_MESH_VIEW), nullptr, true);
3250 3250
             else {
3251 3251
               #if ENABLED(AUTO_BED_LEVELING_UBL)
3252 3252
                 if (ubl.storage_slot < 0) {
@@ -3319,7 +3319,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
3319 3319
             break;
3320 3320
           case LEVELING_VIEW_MESH:
3321 3321
             if (draw)
3322
-              Draw_Menu_Item(row, ICON_PrintSize, GET_TEXT_F(MSG_MESH_VIEW), nullptr, true);
3322
+              Draw_Menu_Item(row, ICON_PrintSize, GET_TEXT(MSG_MESH_VIEW), nullptr, true);
3323 3323
             else
3324 3324
               Draw_Menu(MeshViewer);
3325 3325
             break;
@@ -4070,9 +4070,9 @@ const char * CrealityDWINClass::Get_Menu_Title(uint8_t menu) {
4070 4070
     case InfoMain:          return "Info";
4071 4071
     #if HAS_MESH
4072 4072
       case Leveling:        return "Leveling";
4073
-      case LevelView:       return GET_TEXT_F(MSG_MESH_VIEW);
4073
+      case LevelView:       return GET_TEXT(MSG_MESH_VIEW);
4074 4074
       case LevelSettings:   return "Leveling Settings";
4075
-      case MeshViewer:      return GET_TEXT_F(MSG_MESH_VIEW);
4075
+      case MeshViewer:      return GET_TEXT(MSG_MESH_VIEW);
4076 4076
       case LevelManual:     return "Manual Tuning";
4077 4077
     #endif
4078 4078
     #if ENABLED(AUTO_BED_LEVELING_UBL) && !HAS_BED_PROBE

読み込み中…
キャンセル
保存