|
@@ -122,7 +122,7 @@ void lcd_init()
|
122
|
122
|
lcd.createChar(3,uplevel);
|
123
|
123
|
lcd.createChar(4,refresh);
|
124
|
124
|
lcd.createChar(5,folder);
|
125
|
|
- LCD_MESSAGEPGM("UltiMarlin ready.");
|
|
125
|
+ LCD_MESSAGEPGM(WELCOME_MSG);
|
126
|
126
|
}
|
127
|
127
|
|
128
|
128
|
|
|
@@ -476,25 +476,25 @@ void MainMenu::showPrepare()
|
476
|
476
|
switch(i)
|
477
|
477
|
{
|
478
|
478
|
case ItemP_exit:
|
479
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
479
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
480
|
480
|
break;
|
481
|
481
|
case ItemP_autostart:
|
482
|
|
- MENUITEM( lcdprintPGM(" Autostart") , BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
|
|
482
|
+ MENUITEM( lcdprintPGM(MSG_AUTOSTART) , BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
|
483
|
483
|
break;
|
484
|
484
|
case ItemP_disstep:
|
485
|
|
- MENUITEM( lcdprintPGM(" Disable Steppers") , BLOCK;enquecommand("M84");beepshort(); ) ;
|
|
485
|
+ MENUITEM( lcdprintPGM(MSG_DISABLE_STEPPERS) , BLOCK;enquecommand("M84");beepshort(); ) ;
|
486
|
486
|
break;
|
487
|
487
|
case ItemP_home:
|
488
|
|
- MENUITEM( lcdprintPGM(" Auto Home") , BLOCK;enquecommand("G28 X0 Y0 Z0");beepshort(); ) ;
|
|
488
|
+ MENUITEM( lcdprintPGM(MSG_AUTO_HOME) , BLOCK;enquecommand("G28 X-105 Y-105 Z0");beepshort(); ) ;
|
489
|
489
|
break;
|
490
|
490
|
case ItemP_origin:
|
491
|
|
- MENUITEM( lcdprintPGM(" Set Origin") , BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
|
|
491
|
+ MENUITEM( lcdprintPGM(MSG_SET_ORIGIN) , BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
|
492
|
492
|
break;
|
493
|
493
|
case ItemP_preheat:
|
494
|
|
- MENUITEM( lcdprintPGM(" Preheat") , BLOCK;setTargetHotend0(227);setTargetBed(105);beepshort(); ) ;
|
|
494
|
+ MENUITEM( lcdprintPGM(MSG_PREHEAT) , BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
|
495
|
495
|
break;
|
496
|
496
|
case ItemP_cooldown:
|
497
|
|
- MENUITEM( lcdprintPGM(" Cooldown") , BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
|
|
497
|
+ MENUITEM( lcdprintPGM(MSG_COOLDOWN) , BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
|
498
|
498
|
break;
|
499
|
499
|
// case ItemP_extrude:
|
500
|
500
|
// MENUITEM( lcdprintPGM(" Extrude") , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
|
|
@@ -690,13 +690,13 @@ void MainMenu::showTune()
|
690
|
690
|
switch(i)
|
691
|
691
|
{
|
692
|
692
|
case ItemT_exit:
|
693
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
693
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
694
|
694
|
break;
|
695
|
695
|
case ItemT_speed:
|
696
|
696
|
{
|
697
|
697
|
if(force_lcd_update)
|
698
|
698
|
{
|
699
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Speed:");
|
|
699
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_SPEED);
|
700
|
700
|
lcd.setCursor(13,line);lcd.print(ftostr3(feedmultiply));
|
701
|
701
|
}
|
702
|
702
|
|
|
@@ -731,7 +731,7 @@ void MainMenu::showTune()
|
731
|
731
|
{
|
732
|
732
|
if(force_lcd_update)
|
733
|
733
|
{
|
734
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
|
|
734
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
|
735
|
735
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
|
736
|
736
|
}
|
737
|
737
|
|
|
@@ -765,7 +765,7 @@ void MainMenu::showTune()
|
765
|
765
|
{
|
766
|
766
|
if(force_lcd_update)
|
767
|
767
|
{
|
768
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
|
|
768
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
|
769
|
769
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
|
770
|
770
|
}
|
771
|
771
|
|
|
@@ -836,7 +836,7 @@ void MainMenu::showTune()
|
836
|
836
|
{
|
837
|
837
|
if(force_lcd_update)
|
838
|
838
|
{
|
839
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Flow:");
|
|
839
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FLOW);
|
840
|
840
|
lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
|
841
|
841
|
}
|
842
|
842
|
|
|
@@ -917,13 +917,13 @@ void MainMenu::showControlTemp()
|
917
|
917
|
switch(i)
|
918
|
918
|
{
|
919
|
919
|
case ItemCT_exit:
|
920
|
|
- MENUITEM( lcdprintPGM(" Control \003") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
920
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL) , BLOCK;status=Main_Control;beepshort(); ) ;
|
921
|
921
|
break;
|
922
|
922
|
case ItemCT_nozzle:
|
923
|
923
|
{
|
924
|
924
|
if(force_lcd_update)
|
925
|
925
|
{
|
926
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
|
|
926
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
|
927
|
927
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
|
928
|
928
|
}
|
929
|
929
|
|
|
@@ -958,7 +958,7 @@ void MainMenu::showControlTemp()
|
958
|
958
|
{
|
959
|
959
|
if(force_lcd_update)
|
960
|
960
|
{
|
961
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Min:");
|
|
961
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_MIN);
|
962
|
962
|
lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_min));
|
963
|
963
|
}
|
964
|
964
|
|
|
@@ -992,7 +992,7 @@ void MainMenu::showControlTemp()
|
992
|
992
|
{
|
993
|
993
|
if(force_lcd_update)
|
994
|
994
|
{
|
995
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Max:");
|
|
995
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_MAX);
|
996
|
996
|
lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_max));
|
997
|
997
|
}
|
998
|
998
|
|
|
@@ -1026,7 +1026,7 @@ void MainMenu::showControlTemp()
|
1026
|
1026
|
{
|
1027
|
1027
|
if(force_lcd_update)
|
1028
|
1028
|
{
|
1029
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Fact:");
|
|
1029
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FACTOR);
|
1030
|
1030
|
lcd.setCursor(13,line);lcd.print(ftostr32(autotemp_factor));
|
1031
|
1031
|
}
|
1032
|
1032
|
|
|
@@ -1060,12 +1060,12 @@ void MainMenu::showControlTemp()
|
1060
|
1060
|
{
|
1061
|
1061
|
if(force_lcd_update)
|
1062
|
1062
|
{
|
1063
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Autotemp:");
|
|
1063
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_AUTOTEMP);
|
1064
|
1064
|
lcd.setCursor(13,line);
|
1065
|
1065
|
if(autotemp_enabled)
|
1066
|
|
- lcdprintPGM("On");
|
|
1066
|
+ lcdprintPGM(MSG_ON);
|
1067
|
1067
|
else
|
1068
|
|
- lcdprintPGM("Off");
|
|
1068
|
+ lcdprintPGM(MSG_OFF);
|
1069
|
1069
|
}
|
1070
|
1070
|
|
1071
|
1071
|
if((activeline!=line) )
|
|
@@ -1076,9 +1076,9 @@ void MainMenu::showControlTemp()
|
1076
|
1076
|
autotemp_enabled=!autotemp_enabled;
|
1077
|
1077
|
lcd.setCursor(13,line);
|
1078
|
1078
|
if(autotemp_enabled)
|
1079
|
|
- lcdprintPGM("On ");
|
|
1079
|
+ lcdprintPGM(MSG_ON);
|
1080
|
1080
|
else
|
1081
|
|
- lcdprintPGM("Off");
|
|
1081
|
+ lcdprintPGM(MSG_OFF);
|
1082
|
1082
|
BLOCK;
|
1083
|
1083
|
}
|
1084
|
1084
|
|
|
@@ -1089,7 +1089,7 @@ void MainMenu::showControlTemp()
|
1089
|
1089
|
{
|
1090
|
1090
|
if(force_lcd_update)
|
1091
|
1091
|
{
|
1092
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
|
|
1092
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
|
1093
|
1093
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
|
1094
|
1094
|
}
|
1095
|
1095
|
|
|
@@ -1123,7 +1123,7 @@ void MainMenu::showControlTemp()
|
1123
|
1123
|
{
|
1124
|
1124
|
if(force_lcd_update)
|
1125
|
1125
|
{
|
1126
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Fan speed:");
|
|
1126
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FAN_SPEED);
|
1127
|
1127
|
lcd.setCursor(13,line);lcd.print(ftostr3(fanpwm));
|
1128
|
1128
|
}
|
1129
|
1129
|
|
|
@@ -1193,7 +1193,7 @@ void MainMenu::showControlTemp()
|
1193
|
1193
|
{
|
1194
|
1194
|
if(force_lcd_update)
|
1195
|
1195
|
{
|
1196
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-I: ");
|
|
1196
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_I);
|
1197
|
1197
|
lcd.setCursor(13,line);lcd.print(ftostr51(Ki/PID_dT));
|
1198
|
1198
|
}
|
1199
|
1199
|
|
|
@@ -1228,7 +1228,7 @@ void MainMenu::showControlTemp()
|
1228
|
1228
|
{
|
1229
|
1229
|
if(force_lcd_update)
|
1230
|
1230
|
{
|
1231
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-D: ");
|
|
1231
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_D);
|
1232
|
1232
|
lcd.setCursor(13,line);lcd.print(itostr4(Kd*PID_dT));
|
1233
|
1233
|
}
|
1234
|
1234
|
|
|
@@ -1265,7 +1265,7 @@ void MainMenu::showControlTemp()
|
1265
|
1265
|
{
|
1266
|
1266
|
if(force_lcd_update)
|
1267
|
1267
|
{
|
1268
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-C: ");
|
|
1268
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_C);
|
1269
|
1269
|
lcd.setCursor(13,line);lcd.print(itostr3(Kc));
|
1270
|
1270
|
}
|
1271
|
1271
|
|
|
@@ -1331,13 +1331,13 @@ void MainMenu::showControlMotion()
|
1331
|
1331
|
switch(i)
|
1332
|
1332
|
{
|
1333
|
1333
|
case ItemCM_exit:
|
1334
|
|
- MENUITEM( lcdprintPGM(" Control \003") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
1334
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL) , BLOCK;status=Main_Control;beepshort(); ) ;
|
1335
|
1335
|
break;
|
1336
|
1336
|
case ItemCM_acc:
|
1337
|
1337
|
{
|
1338
|
1338
|
if(force_lcd_update)
|
1339
|
1339
|
{
|
1340
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Acc:");
|
|
1340
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_ACC);
|
1341
|
1341
|
lcd.setCursor(13,line);lcd.print(itostr3(acceleration/100));lcdprintPGM("00");
|
1342
|
1342
|
}
|
1343
|
1343
|
|
|
@@ -1371,7 +1371,7 @@ void MainMenu::showControlMotion()
|
1371
|
1371
|
{
|
1372
|
1372
|
if(force_lcd_update)
|
1373
|
1373
|
{
|
1374
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
|
|
1374
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VXY_JERK);
|
1375
|
1375
|
lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
|
1376
|
1376
|
}
|
1377
|
1377
|
|
|
@@ -1410,11 +1410,11 @@ void MainMenu::showControlMotion()
|
1410
|
1410
|
{
|
1411
|
1411
|
if(force_lcd_update)
|
1412
|
1412
|
{
|
1413
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vmax ");
|
1414
|
|
- if(i==ItemCM_vmaxx)lcdprintPGM("x:");
|
1415
|
|
- if(i==ItemCM_vmaxy)lcdprintPGM("y:");
|
1416
|
|
- if(i==ItemCM_vmaxz)lcdprintPGM("z:");
|
1417
|
|
- if(i==ItemCM_vmaxe)lcdprintPGM("e:");
|
|
1413
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VMAX);
|
|
1414
|
+ if(i==ItemCM_vmaxx)lcdprintPGM(MSG_X);
|
|
1415
|
+ if(i==ItemCM_vmaxy)lcdprintPGM(MSG_Y);
|
|
1416
|
+ if(i==ItemCM_vmaxz)lcdprintPGM(MSG_Z);
|
|
1417
|
+ if(i==ItemCM_vmaxe)lcdprintPGM(MSG_E);
|
1418
|
1418
|
lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemCM_vmaxx]));
|
1419
|
1419
|
}
|
1420
|
1420
|
|
|
@@ -1450,7 +1450,7 @@ void MainMenu::showControlMotion()
|
1450
|
1450
|
{
|
1451
|
1451
|
if(force_lcd_update)
|
1452
|
1452
|
{
|
1453
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
|
|
1453
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VMIN);
|
1454
|
1454
|
lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
|
1455
|
1455
|
}
|
1456
|
1456
|
|
|
@@ -1485,7 +1485,7 @@ void MainMenu::showControlMotion()
|
1485
|
1485
|
{
|
1486
|
1486
|
if(force_lcd_update)
|
1487
|
1487
|
{
|
1488
|
|
- lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
|
|
1488
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VTRAV_MIN);
|
1489
|
1489
|
lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
|
1490
|
1490
|
}
|
1491
|
1491
|
|
|
@@ -1525,10 +1525,10 @@ void MainMenu::showControlMotion()
|
1525
|
1525
|
if(force_lcd_update)
|
1526
|
1526
|
{
|
1527
|
1527
|
lcd.setCursor(0,line);lcdprintPGM(" Amax ");
|
1528
|
|
- if(i==ItemCM_amaxx)lcdprintPGM("x:");
|
1529
|
|
- if(i==ItemCM_amaxy)lcdprintPGM("y:");
|
1530
|
|
- if(i==ItemCM_amaxz)lcdprintPGM("z:");
|
1531
|
|
- if(i==ItemCM_amaxe)lcdprintPGM("e:");
|
|
1528
|
+ if(i==ItemCM_amaxx)lcdprintPGM(MSG_X);
|
|
1529
|
+ if(i==ItemCM_amaxy)lcdprintPGM(MSG_Y);
|
|
1530
|
+ if(i==ItemCM_amaxz)lcdprintPGM(MSG_Z);
|
|
1531
|
+ if(i==ItemCM_amaxe)lcdprintPGM(MSG_E);
|
1532
|
1532
|
lcd.setCursor(13,line);lcd.print(itostr3(max_acceleration_units_per_sq_second[i-ItemCM_amaxx]/100));lcdprintPGM("00");
|
1533
|
1533
|
}
|
1534
|
1534
|
|
|
@@ -1562,7 +1562,7 @@ void MainMenu::showControlMotion()
|
1562
|
1562
|
{
|
1563
|
1563
|
if(force_lcd_update)
|
1564
|
1564
|
{
|
1565
|
|
- lcd.setCursor(0,line);lcdprintPGM(" A-retract:");
|
|
1565
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_A_RETRACT);
|
1566
|
1566
|
lcd.setCursor(13,line);lcd.print(ftostr3(retract_acceleration/100));lcdprintPGM("00");
|
1567
|
1567
|
}
|
1568
|
1568
|
|
|
@@ -1712,7 +1712,7 @@ void MainMenu::showControlMotion()
|
1712
|
1712
|
{
|
1713
|
1713
|
if(force_lcd_update)
|
1714
|
1714
|
{
|
1715
|
|
- lcd.setCursor(0,line);lcdprintPGM(" E steps/mm:");
|
|
1715
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_ESTEPS);
|
1716
|
1716
|
lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
|
1717
|
1717
|
}
|
1718
|
1718
|
|
|
@@ -1769,19 +1769,19 @@ void MainMenu::showControl()
|
1769
|
1769
|
switch(i)
|
1770
|
1770
|
{
|
1771
|
1771
|
case ItemC_exit:
|
1772
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
1772
|
+ MENUITEM( lcdprintPGM(MSG_MAIN_WIDE) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
1773
|
1773
|
break;
|
1774
|
1774
|
case ItemC_temp:
|
1775
|
|
- MENUITEM( lcdprintPGM(" Temperature \x7E") , BLOCK;status=Sub_TempControl;beepshort(); ) ;
|
|
1775
|
+ MENUITEM( lcdprintPGM(MSG_TEMPERATURE_WIDE) , BLOCK;status=Sub_TempControl;beepshort(); ) ;
|
1776
|
1776
|
break;
|
1777
|
1777
|
case ItemC_move:
|
1778
|
|
- MENUITEM( lcdprintPGM(" Motion \x7E") , BLOCK;status=Sub_MotionControl;beepshort(); ) ;
|
|
1778
|
+ MENUITEM( lcdprintPGM(MSG_MOTION_WIDE) , BLOCK;status=Sub_MotionControl;beepshort(); ) ;
|
1779
|
1779
|
break;
|
1780
|
1780
|
case ItemC_store:
|
1781
|
1781
|
{
|
1782
|
1782
|
if(force_lcd_update)
|
1783
|
1783
|
{
|
1784
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Store EPROM");
|
|
1784
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_STORE_EPROM);
|
1785
|
1785
|
}
|
1786
|
1786
|
if((activeline==line) && CLICKED)
|
1787
|
1787
|
{
|
|
@@ -1795,7 +1795,7 @@ void MainMenu::showControl()
|
1795
|
1795
|
{
|
1796
|
1796
|
if(force_lcd_update)
|
1797
|
1797
|
{
|
1798
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Load EPROM");
|
|
1798
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_LOAD_EPROM);
|
1799
|
1799
|
}
|
1800
|
1800
|
if((activeline==line) && CLICKED)
|
1801
|
1801
|
{
|
|
@@ -1809,7 +1809,7 @@ void MainMenu::showControl()
|
1809
|
1809
|
{
|
1810
|
1810
|
if(force_lcd_update)
|
1811
|
1811
|
{
|
1812
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Restore Failsafe");
|
|
1812
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_RESTORE_FAILSAFE);
|
1813
|
1813
|
}
|
1814
|
1814
|
if((activeline==line) && CLICKED)
|
1815
|
1815
|
{
|
|
@@ -1856,7 +1856,7 @@ void MainMenu::showSD()
|
1856
|
1856
|
switch(i)
|
1857
|
1857
|
{
|
1858
|
1858
|
case 0:
|
1859
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
1859
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
1860
|
1860
|
break;
|
1861
|
1861
|
// case 1:
|
1862
|
1862
|
// {
|
|
@@ -1887,7 +1887,7 @@ void MainMenu::showSD()
|
1887
|
1887
|
// }
|
1888
|
1888
|
// }break;
|
1889
|
1889
|
case 1:
|
1890
|
|
- MENUITEM( lcd.print(" ");card.getWorkDirName();if(card.filename[0]=='/') lcdprintPGM("\004Refresh");else {lcd.print("\005");lcd.print(card.filename);lcd.print("/..");} , BLOCK;card.updir();enforceupdate=true;lineoffset=0;beepshort(); ) ;
|
|
1890
|
+ MENUITEM( lcd.print(" ");card.getWorkDirName();if(card.filename[0]=='/') lcdprintPGM(MSG_REFRESH);else {lcd.print("\005");lcd.print(card.filename);lcd.print("/..");} , BLOCK;card.updir();enforceupdate=true;lineoffset=0;beepshort(); ) ;
|
1891
|
1891
|
|
1892
|
1892
|
break;
|
1893
|
1893
|
default:
|
|
@@ -1974,14 +1974,14 @@ void MainMenu::showMainMenu()
|
1974
|
1974
|
switch(line)
|
1975
|
1975
|
{
|
1976
|
1976
|
case ItemM_watch:
|
1977
|
|
- MENUITEM( lcdprintPGM(" Watch \003") , BLOCK;status=Main_Status;beepshort(); ) ;
|
|
1977
|
+ MENUITEM( lcdprintPGM(MSG_WATCH) , BLOCK;status=Main_Status;beepshort(); ) ;
|
1978
|
1978
|
break;
|
1979
|
1979
|
case ItemM_prepare:
|
1980
|
|
- MENUITEM( if(!tune) lcdprintPGM(" Prepare \x7E");else lcdprintPGM(" Tune \x7E"); , BLOCK;status=Main_Prepare;beepshort(); ) ;
|
|
1980
|
+ MENUITEM( if(!tune) lcdprintPGM(MSG_PREPARE);else lcdprintPGM(MSG_TUNE); , BLOCK;status=Main_Prepare;beepshort(); ) ;
|
1981
|
1981
|
break;
|
1982
|
1982
|
|
1983
|
1983
|
case ItemM_control:
|
1984
|
|
- MENUITEM( lcdprintPGM(" Control \x7E") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
1984
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL_ARROW) , BLOCK;status=Main_Control;beepshort(); ) ;
|
1985
|
1985
|
break;
|
1986
|
1986
|
#ifdef SDSUPPORT
|
1987
|
1987
|
case ItemM_file:
|
|
@@ -1996,13 +1996,13 @@ void MainMenu::showMainMenu()
|
1996
|
1996
|
#endif
|
1997
|
1997
|
{
|
1998
|
1998
|
if(card.sdprinting)
|
1999
|
|
- lcdprintPGM(" Stop Print \x7E");
|
|
1999
|
+ lcdprintPGM(MSG_STOP_PRINT);
|
2000
|
2000
|
else
|
2001
|
|
- lcdprintPGM(" Card Menu \x7E");
|
|
2001
|
+ lcdprintPGM(MSG_CARD_MENU);
|
2002
|
2002
|
}
|
2003
|
2003
|
else
|
2004
|
2004
|
{
|
2005
|
|
- lcdprintPGM(" No Card");
|
|
2005
|
+ lcdprintPGM(MSG_NO_CARD);
|
2006
|
2006
|
}
|
2007
|
2007
|
}
|
2008
|
2008
|
#ifdef CARDINSERTED
|
|
@@ -2022,7 +2022,7 @@ void MainMenu::showMainMenu()
|
2022
|
2022
|
#endif
|
2023
|
2023
|
default:
|
2024
|
2024
|
SERIAL_ERROR_START;
|
2025
|
|
- SERIAL_ERRORLNPGM("Something is wrong in the MenuStructure.");
|
|
2025
|
+ SERIAL_ERRORLNPGM(MSG_SERIAL_ERROR_MENU_STRUCTURE);
|
2026
|
2026
|
break;
|
2027
|
2027
|
}
|
2028
|
2028
|
}
|
|
@@ -2043,12 +2043,12 @@ void MainMenu::update()
|
2043
|
2043
|
if(CARDINSERTED)
|
2044
|
2044
|
{
|
2045
|
2045
|
card.initsd();
|
2046
|
|
- LCD_MESSAGEPGM("Card inserted");
|
|
2046
|
+ LCD_MESSAGEPGM(MSG_SD_INSERTED);
|
2047
|
2047
|
}
|
2048
|
2048
|
else
|
2049
|
2049
|
{
|
2050
|
2050
|
card.release();
|
2051
|
|
- LCD_MESSAGEPGM("Card removed");
|
|
2051
|
+ LCD_MESSAGEPGM(MSG_SD_REMOVED);
|
2052
|
2052
|
}
|
2053
|
2053
|
}
|
2054
|
2054
|
#endif
|