|
@@ -44,7 +44,7 @@
|
44
|
44
|
#endif
|
45
|
45
|
|
46
|
46
|
uint16_t manualMoveStep = 1;
|
47
|
|
-float distanceFilament = 10;
|
|
47
|
+uint16_t distanceFilament = 10;
|
48
|
48
|
uint16_t FilamentSpeed = 25;
|
49
|
49
|
float ZOffset_distance = 0.1;
|
50
|
50
|
float mesh_adj_distance = 0.01;
|
|
@@ -554,7 +554,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
|
554
|
554
|
#if ENABLED(DGUS_FILAMENT_LOADUNLOAD)
|
555
|
555
|
VPHELPER(VP_LOAD_Filament, nullptr, &ScreenHandler.MKS_FilamentLoad, nullptr),
|
556
|
556
|
VPHELPER(VP_UNLOAD_Filament, nullptr, &ScreenHandler.MKS_FilamentUnLoad, nullptr),
|
557
|
|
- VPHELPER(VP_Filament_distance, &distanceFilament, &ScreenHandler.GetManualFilament, ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<0>),
|
|
557
|
+ VPHELPER(VP_Filament_distance, &distanceFilament, &ScreenHandler.GetManualFilament, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
|
558
|
558
|
VPHELPER(VP_Filament_speed, &FilamentSpeed, &ScreenHandler.GetManualFilamentSpeed, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
|
559
|
559
|
#endif
|
560
|
560
|
#endif
|
|
@@ -733,8 +733,9 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
|
733
|
733
|
|
734
|
734
|
|
735
|
735
|
// SDCard File listing
|
736
|
|
- VPHELPER(VP_SD_FileSelected, nullptr, ScreenHandler.DGUSLCD_SD_FileSelected, nullptr),
|
|
736
|
+
|
737
|
737
|
#if ENABLED(SDSUPPORT)
|
|
738
|
+ VPHELPER(VP_SD_FileSelected, nullptr, ScreenHandler.DGUSLCD_SD_FileSelected, nullptr),
|
738
|
739
|
VPHELPER(VP_SD_ScrollEvent, nullptr, ScreenHandler.DGUSLCD_SD_ScrollFilelist, nullptr),
|
739
|
740
|
VPHELPER(VP_SD_FileSelectConfirm, nullptr, ScreenHandler.DGUSLCD_SD_StartPrint, nullptr),
|
740
|
741
|
VPHELPER_STR(VP_SD_FileName0, nullptr, VP_SD_FileName_LEN, nullptr, ScreenHandler.DGUSLCD_SD_SendFilename),
|
|
@@ -759,6 +760,8 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
|
759
|
760
|
VPHELPER(VP_OFFSET_Y, &probe.offset.y, ScreenHandler.GetOffsetValue,ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<2>),
|
760
|
761
|
VPHELPER(VP_OFFSET_Z, &probe.offset.z, ScreenHandler.GetOffsetValue,ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<2>),
|
761
|
762
|
#endif
|
|
763
|
+ #else
|
|
764
|
+ VPHELPER(VP_SD_FileSelected, nullptr, ScreenHandler.PrintReturn, nullptr),
|
762
|
765
|
#endif
|
763
|
766
|
|
764
|
767
|
#if ENABLED(DGUS_UI_WAITING)
|