|
@@ -374,6 +374,17 @@ void MainMenu::showStatus()
|
374
|
374
|
lcd.print(fillto(LCD_WIDTH,messagetext));
|
375
|
375
|
messagetext[0]='\0';
|
376
|
376
|
}
|
|
377
|
+
|
|
378
|
+ static uint8_t oldpercent=101;
|
|
379
|
+ uint8_t percent=card.percentDone();
|
|
380
|
+ if(oldpercent!=percent ||force_lcd_update)
|
|
381
|
+ {
|
|
382
|
+ lcd.setCursor(7,2);
|
|
383
|
+ lcd.print(itostr3((int)percent));
|
|
384
|
+ lcdprintPGM("%SD");
|
|
385
|
+
|
|
386
|
+ }
|
|
387
|
+
|
377
|
388
|
#else //smaller LCDS----------------------------------
|
378
|
389
|
static int olddegHotEnd0=-1;
|
379
|
390
|
static int oldtargetHotEnd0=-1;
|
|
@@ -686,7 +697,7 @@ void MainMenu::showControl()
|
686
|
697
|
if(force_lcd_update)
|
687
|
698
|
{
|
688
|
699
|
lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
|
689
|
|
- lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk/60));
|
|
700
|
+ lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
|
690
|
701
|
}
|
691
|
702
|
|
692
|
703
|
if((activeline==line) )
|
|
@@ -696,11 +707,11 @@ void MainMenu::showControl()
|
696
|
707
|
linechanging=!linechanging;
|
697
|
708
|
if(linechanging)
|
698
|
709
|
{
|
699
|
|
- encoderpos=(int)max_xy_jerk/60;
|
|
710
|
+ encoderpos=(int)max_xy_jerk;
|
700
|
711
|
}
|
701
|
712
|
else
|
702
|
713
|
{
|
703
|
|
- max_xy_jerk= encoderpos*60;
|
|
714
|
+ max_xy_jerk= encoderpos;
|
704
|
715
|
encoderpos=activeline*lcdslow;
|
705
|
716
|
|
706
|
717
|
}
|
|
@@ -866,7 +877,7 @@ void MainMenu::showControl()
|
866
|
877
|
if(i==ItemC_vmaxy)lcdprintPGM("y:");
|
867
|
878
|
if(i==ItemC_vmaxz)lcdprintPGM("z:");
|
868
|
879
|
if(i==ItemC_vmaxe)lcdprintPGM("e:");
|
869
|
|
- lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemC_vmaxx]/60));
|
|
880
|
+ lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemC_vmaxx]));
|
870
|
881
|
}
|
871
|
882
|
|
872
|
883
|
if((activeline==line) )
|
|
@@ -876,11 +887,11 @@ void MainMenu::showControl()
|
876
|
887
|
linechanging=!linechanging;
|
877
|
888
|
if(linechanging)
|
878
|
889
|
{
|
879
|
|
- encoderpos=(int)max_feedrate[i-ItemC_vmaxx]/60;
|
|
890
|
+ encoderpos=(int)max_feedrate[i-ItemC_vmaxx];
|
880
|
891
|
}
|
881
|
892
|
else
|
882
|
893
|
{
|
883
|
|
- max_feedrate[i-ItemC_vmaxx]= encoderpos*60;
|
|
894
|
+ max_feedrate[i-ItemC_vmaxx]= encoderpos;
|
884
|
895
|
encoderpos=activeline*lcdslow;
|
885
|
896
|
|
886
|
897
|
}
|
|
@@ -901,7 +912,7 @@ void MainMenu::showControl()
|
901
|
912
|
if(force_lcd_update)
|
902
|
913
|
{
|
903
|
914
|
lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
|
904
|
|
- lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate/60));
|
|
915
|
+ lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
|
905
|
916
|
}
|
906
|
917
|
|
907
|
918
|
if((activeline==line) )
|
|
@@ -911,11 +922,11 @@ void MainMenu::showControl()
|
911
|
922
|
linechanging=!linechanging;
|
912
|
923
|
if(linechanging)
|
913
|
924
|
{
|
914
|
|
- encoderpos=(int)(minimumfeedrate/60.);
|
|
925
|
+ encoderpos=(int)(minimumfeedrate);
|
915
|
926
|
}
|
916
|
927
|
else
|
917
|
928
|
{
|
918
|
|
- minimumfeedrate= encoderpos*60;
|
|
929
|
+ minimumfeedrate= encoderpos;
|
919
|
930
|
encoderpos=activeline*lcdslow;
|
920
|
931
|
|
921
|
932
|
}
|
|
@@ -935,7 +946,7 @@ void MainMenu::showControl()
|
935
|
946
|
if(force_lcd_update)
|
936
|
947
|
{
|
937
|
948
|
lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
|
938
|
|
- lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate/60));
|
|
949
|
+ lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
|
939
|
950
|
}
|
940
|
951
|
|
941
|
952
|
if((activeline==line) )
|
|
@@ -945,11 +956,11 @@ void MainMenu::showControl()
|
945
|
956
|
linechanging=!linechanging;
|
946
|
957
|
if(linechanging)
|
947
|
958
|
{
|
948
|
|
- encoderpos=(int)mintravelfeedrate/60;
|
|
959
|
+ encoderpos=(int)mintravelfeedrate;
|
949
|
960
|
}
|
950
|
961
|
else
|
951
|
962
|
{
|
952
|
|
- mintravelfeedrate= encoderpos*60;
|
|
963
|
+ mintravelfeedrate= encoderpos;
|
953
|
964
|
encoderpos=activeline*lcdslow;
|
954
|
965
|
|
955
|
966
|
}
|