InsanityAutomation 5 лет назад
Родитель
Сommit
71526fa5ce

+ 0
- 3
Marlin/src/lcd/extensible_ui/ui_api.cpp Просмотреть файл

@@ -819,9 +819,6 @@ namespace ExtUI {
819 819
           #endif
820 820
         }
821 821
       }
822
-      void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval) {
823
-        UNUSED(xpos); UNUSED(ypos); UNUSED(zval);
824
-      }
825 822
     #endif
826 823
   #endif
827 824
 

+ 1
- 1
Marlin/src/lcd/extensible_ui/ui_api.h Просмотреть файл

@@ -138,7 +138,7 @@ namespace ExtUI {
138 138
       float getMeshPoint(const xy_uint8_t &pos);
139 139
       void setMeshPoint(const xy_uint8_t &pos, const float zval);
140 140
       void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval);
141
-      inline void onMeshUpdate(const xy_uint8_t &pos, const float zval) { setMeshPoint(pos, zval); }
141
+      inline void onMeshUpdate(const xy_uint8_t &pos, const float zval) { onMeshUpdate(pos.x, pos.y, zval); }
142 142
     #endif
143 143
   #endif
144 144
 

+ 4
- 0
Marlin/src/lcd/extui_example.cpp Просмотреть файл

@@ -88,6 +88,10 @@ namespace ExtUI {
88 88
     // This is called after the entire EEPROM has been read,
89 89
     // whether successful or not.
90 90
   }
91
+
92
+  void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval) {
93
+    // This is called when any mesh points are updated
94
+  }
91 95
 }
92 96
 
93 97
 #endif // EXTUI_EXAMPLE && EXTENSIBLE_UI

Загрузка…
Отмена
Сохранить