|
@@ -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
|
|
|
@@ -464,25 +464,25 @@ void MainMenu::showPrepare()
|
464
|
464
|
switch(i)
|
465
|
465
|
{
|
466
|
466
|
case ItemP_exit:
|
467
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
467
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
468
|
468
|
break;
|
469
|
469
|
case ItemP_autostart:
|
470
|
|
- MENUITEM( lcdprintPGM(" Autostart") , BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
|
|
470
|
+ MENUITEM( lcdprintPGM(MSG_AUTOSTART) , BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
|
471
|
471
|
break;
|
472
|
472
|
case ItemP_disstep:
|
473
|
|
- MENUITEM( lcdprintPGM(" Disable Steppers") , BLOCK;enquecommand("M84");beepshort(); ) ;
|
|
473
|
+ MENUITEM( lcdprintPGM(MSG_DISABLE_STEPPERS) , BLOCK;enquecommand("M84");beepshort(); ) ;
|
474
|
474
|
break;
|
475
|
475
|
case ItemP_home:
|
476
|
|
- MENUITEM( lcdprintPGM(" Auto Home") , BLOCK;enquecommand("G28 X-105 Y-105 Z0");beepshort(); ) ;
|
|
476
|
+ MENUITEM( lcdprintPGM(MSG_AUTO_HOME) , BLOCK;enquecommand("G28 X-105 Y-105 Z0");beepshort(); ) ;
|
477
|
477
|
break;
|
478
|
478
|
case ItemP_origin:
|
479
|
|
- MENUITEM( lcdprintPGM(" Set Origin") , BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
|
|
479
|
+ MENUITEM( lcdprintPGM(MSG_SET_ORIGIN) , BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
|
480
|
480
|
break;
|
481
|
481
|
case ItemP_preheat:
|
482
|
|
- MENUITEM( lcdprintPGM(" Preheat") , BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
|
|
482
|
+ MENUITEM( lcdprintPGM(MSG_PREHEAT) , BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
|
483
|
483
|
break;
|
484
|
484
|
case ItemP_cooldown:
|
485
|
|
- MENUITEM( lcdprintPGM(" Cooldown") , BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
|
|
485
|
+ MENUITEM( lcdprintPGM(MSG_COOLDOWN) , BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
|
486
|
486
|
break;
|
487
|
487
|
case ItemP_extrude:
|
488
|
488
|
MENUITEM( lcdprintPGM(" Extrude") , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
|
|
@@ -513,13 +513,13 @@ void MainMenu::showTune()
|
513
|
513
|
switch(i)
|
514
|
514
|
{
|
515
|
515
|
case ItemT_exit:
|
516
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
516
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
517
|
517
|
break;
|
518
|
518
|
case ItemT_speed:
|
519
|
519
|
{
|
520
|
520
|
if(force_lcd_update)
|
521
|
521
|
{
|
522
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Speed:");
|
|
522
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_SPEED);
|
523
|
523
|
lcd.setCursor(13,line);lcd.print(ftostr3(feedmultiply));
|
524
|
524
|
}
|
525
|
525
|
|
|
@@ -554,7 +554,7 @@ void MainMenu::showTune()
|
554
|
554
|
{
|
555
|
555
|
if(force_lcd_update)
|
556
|
556
|
{
|
557
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
|
|
557
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
|
558
|
558
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
|
559
|
559
|
}
|
560
|
560
|
|
|
@@ -588,7 +588,7 @@ void MainMenu::showTune()
|
588
|
588
|
{
|
589
|
589
|
if(force_lcd_update)
|
590
|
590
|
{
|
591
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
|
|
591
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
|
592
|
592
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
|
593
|
593
|
}
|
594
|
594
|
|
|
@@ -659,7 +659,7 @@ void MainMenu::showTune()
|
659
|
659
|
{
|
660
|
660
|
if(force_lcd_update)
|
661
|
661
|
{
|
662
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Flow:");
|
|
662
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FLOW);
|
663
|
663
|
lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
|
664
|
664
|
}
|
665
|
665
|
|
|
@@ -740,13 +740,13 @@ void MainMenu::showControlTemp()
|
740
|
740
|
switch(i)
|
741
|
741
|
{
|
742
|
742
|
case ItemCT_exit:
|
743
|
|
- MENUITEM( lcdprintPGM(" Control \003") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
743
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL) , BLOCK;status=Main_Control;beepshort(); ) ;
|
744
|
744
|
break;
|
745
|
745
|
case ItemCT_nozzle:
|
746
|
746
|
{
|
747
|
747
|
if(force_lcd_update)
|
748
|
748
|
{
|
749
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
|
|
749
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
|
750
|
750
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
|
751
|
751
|
}
|
752
|
752
|
|
|
@@ -781,7 +781,7 @@ void MainMenu::showControlTemp()
|
781
|
781
|
{
|
782
|
782
|
if(force_lcd_update)
|
783
|
783
|
{
|
784
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Min:");
|
|
784
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_MIN);
|
785
|
785
|
lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_min));
|
786
|
786
|
}
|
787
|
787
|
|
|
@@ -815,7 +815,7 @@ void MainMenu::showControlTemp()
|
815
|
815
|
{
|
816
|
816
|
if(force_lcd_update)
|
817
|
817
|
{
|
818
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Max:");
|
|
818
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_MAX);
|
819
|
819
|
lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_max));
|
820
|
820
|
}
|
821
|
821
|
|
|
@@ -849,7 +849,7 @@ void MainMenu::showControlTemp()
|
849
|
849
|
{
|
850
|
850
|
if(force_lcd_update)
|
851
|
851
|
{
|
852
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002 Fact:");
|
|
852
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FACTOR);
|
853
|
853
|
lcd.setCursor(13,line);lcd.print(ftostr32(autotemp_factor));
|
854
|
854
|
}
|
855
|
855
|
|
|
@@ -883,12 +883,12 @@ void MainMenu::showControlTemp()
|
883
|
883
|
{
|
884
|
884
|
if(force_lcd_update)
|
885
|
885
|
{
|
886
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Autotemp:");
|
|
886
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_AUTOTEMP);
|
887
|
887
|
lcd.setCursor(13,line);
|
888
|
888
|
if(autotemp_enabled)
|
889
|
|
- lcdprintPGM("On");
|
|
889
|
+ lcdprintPGM(MSG_ON);
|
890
|
890
|
else
|
891
|
|
- lcdprintPGM("Off");
|
|
891
|
+ lcdprintPGM(MSG_OFF);
|
892
|
892
|
}
|
893
|
893
|
|
894
|
894
|
if((activeline!=line) )
|
|
@@ -899,9 +899,9 @@ void MainMenu::showControlTemp()
|
899
|
899
|
autotemp_enabled=!autotemp_enabled;
|
900
|
900
|
lcd.setCursor(13,line);
|
901
|
901
|
if(autotemp_enabled)
|
902
|
|
- lcdprintPGM("On ");
|
|
902
|
+ lcdprintPGM(MSG_ON);
|
903
|
903
|
else
|
904
|
|
- lcdprintPGM("Off");
|
|
904
|
+ lcdprintPGM(MSG_OFF);
|
905
|
905
|
BLOCK;
|
906
|
906
|
}
|
907
|
907
|
|
|
@@ -912,7 +912,7 @@ void MainMenu::showControlTemp()
|
912
|
912
|
{
|
913
|
913
|
if(force_lcd_update)
|
914
|
914
|
{
|
915
|
|
- lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
|
|
915
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
|
916
|
916
|
lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
|
917
|
917
|
}
|
918
|
918
|
|
|
@@ -946,7 +946,7 @@ void MainMenu::showControlTemp()
|
946
|
946
|
{
|
947
|
947
|
if(force_lcd_update)
|
948
|
948
|
{
|
949
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Fan speed:");
|
|
949
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_FAN_SPEED);
|
950
|
950
|
lcd.setCursor(13,line);lcd.print(ftostr3(fanpwm));
|
951
|
951
|
}
|
952
|
952
|
|
|
@@ -1016,7 +1016,7 @@ void MainMenu::showControlTemp()
|
1016
|
1016
|
{
|
1017
|
1017
|
if(force_lcd_update)
|
1018
|
1018
|
{
|
1019
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-I: ");
|
|
1019
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_I);
|
1020
|
1020
|
lcd.setCursor(13,line);lcd.print(ftostr51(Ki/PID_dT));
|
1021
|
1021
|
}
|
1022
|
1022
|
|
|
@@ -1051,7 +1051,7 @@ void MainMenu::showControlTemp()
|
1051
|
1051
|
{
|
1052
|
1052
|
if(force_lcd_update)
|
1053
|
1053
|
{
|
1054
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-D: ");
|
|
1054
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_D);
|
1055
|
1055
|
lcd.setCursor(13,line);lcd.print(itostr4(Kd*PID_dT));
|
1056
|
1056
|
}
|
1057
|
1057
|
|
|
@@ -1088,7 +1088,7 @@ void MainMenu::showControlTemp()
|
1088
|
1088
|
{
|
1089
|
1089
|
if(force_lcd_update)
|
1090
|
1090
|
{
|
1091
|
|
- lcd.setCursor(0,line);lcdprintPGM(" PID-C: ");
|
|
1091
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_PID_C);
|
1092
|
1092
|
lcd.setCursor(13,line);lcd.print(itostr3(Kc));
|
1093
|
1093
|
}
|
1094
|
1094
|
|
|
@@ -1154,13 +1154,13 @@ void MainMenu::showControlMotion()
|
1154
|
1154
|
switch(i)
|
1155
|
1155
|
{
|
1156
|
1156
|
case ItemCM_exit:
|
1157
|
|
- MENUITEM( lcdprintPGM(" Control \003") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
1157
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL) , BLOCK;status=Main_Control;beepshort(); ) ;
|
1158
|
1158
|
break;
|
1159
|
1159
|
case ItemCM_acc:
|
1160
|
1160
|
{
|
1161
|
1161
|
if(force_lcd_update)
|
1162
|
1162
|
{
|
1163
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Acc:");
|
|
1163
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_ACC);
|
1164
|
1164
|
lcd.setCursor(13,line);lcd.print(itostr3(acceleration/100));lcdprintPGM("00");
|
1165
|
1165
|
}
|
1166
|
1166
|
|
|
@@ -1194,7 +1194,7 @@ void MainMenu::showControlMotion()
|
1194
|
1194
|
{
|
1195
|
1195
|
if(force_lcd_update)
|
1196
|
1196
|
{
|
1197
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
|
|
1197
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VXY_JERK);
|
1198
|
1198
|
lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
|
1199
|
1199
|
}
|
1200
|
1200
|
|
|
@@ -1233,11 +1233,11 @@ void MainMenu::showControlMotion()
|
1233
|
1233
|
{
|
1234
|
1234
|
if(force_lcd_update)
|
1235
|
1235
|
{
|
1236
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vmax ");
|
1237
|
|
- if(i==ItemCM_vmaxx)lcdprintPGM("x:");
|
1238
|
|
- if(i==ItemCM_vmaxy)lcdprintPGM("y:");
|
1239
|
|
- if(i==ItemCM_vmaxz)lcdprintPGM("z:");
|
1240
|
|
- if(i==ItemCM_vmaxe)lcdprintPGM("e:");
|
|
1236
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VMAX);
|
|
1237
|
+ if(i==ItemCM_vmaxx)lcdprintPGM(MSG_X);
|
|
1238
|
+ if(i==ItemCM_vmaxy)lcdprintPGM(MSG_Y);
|
|
1239
|
+ if(i==ItemCM_vmaxz)lcdprintPGM(MSG_Z);
|
|
1240
|
+ if(i==ItemCM_vmaxe)lcdprintPGM(MSG_E);
|
1241
|
1241
|
lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemCM_vmaxx]));
|
1242
|
1242
|
}
|
1243
|
1243
|
|
|
@@ -1273,7 +1273,7 @@ void MainMenu::showControlMotion()
|
1273
|
1273
|
{
|
1274
|
1274
|
if(force_lcd_update)
|
1275
|
1275
|
{
|
1276
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
|
|
1276
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VMIN);
|
1277
|
1277
|
lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
|
1278
|
1278
|
}
|
1279
|
1279
|
|
|
@@ -1308,7 +1308,7 @@ void MainMenu::showControlMotion()
|
1308
|
1308
|
{
|
1309
|
1309
|
if(force_lcd_update)
|
1310
|
1310
|
{
|
1311
|
|
- lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
|
|
1311
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_VTRAV_MIN);
|
1312
|
1312
|
lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
|
1313
|
1313
|
}
|
1314
|
1314
|
|
|
@@ -1348,10 +1348,10 @@ void MainMenu::showControlMotion()
|
1348
|
1348
|
if(force_lcd_update)
|
1349
|
1349
|
{
|
1350
|
1350
|
lcd.setCursor(0,line);lcdprintPGM(" Amax ");
|
1351
|
|
- if(i==ItemCM_amaxx)lcdprintPGM("x:");
|
1352
|
|
- if(i==ItemCM_amaxy)lcdprintPGM("y:");
|
1353
|
|
- if(i==ItemCM_amaxz)lcdprintPGM("z:");
|
1354
|
|
- if(i==ItemCM_amaxe)lcdprintPGM("e:");
|
|
1351
|
+ if(i==ItemCM_amaxx)lcdprintPGM(MSG_X);
|
|
1352
|
+ if(i==ItemCM_amaxy)lcdprintPGM(MSG_Y);
|
|
1353
|
+ if(i==ItemCM_amaxz)lcdprintPGM(MSG_Z);
|
|
1354
|
+ if(i==ItemCM_amaxe)lcdprintPGM(MSG_E);
|
1355
|
1355
|
lcd.setCursor(13,line);lcd.print(itostr3(max_acceleration_units_per_sq_second[i-ItemCM_amaxx]/100));lcdprintPGM("00");
|
1356
|
1356
|
}
|
1357
|
1357
|
|
|
@@ -1385,7 +1385,7 @@ void MainMenu::showControlMotion()
|
1385
|
1385
|
{
|
1386
|
1386
|
if(force_lcd_update)
|
1387
|
1387
|
{
|
1388
|
|
- lcd.setCursor(0,line);lcdprintPGM(" A-retract:");
|
|
1388
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_A_RETRACT);
|
1389
|
1389
|
lcd.setCursor(13,line);lcd.print(ftostr3(retract_acceleration/100));lcdprintPGM("00");
|
1390
|
1390
|
}
|
1391
|
1391
|
|
|
@@ -1420,7 +1420,7 @@ void MainMenu::showControlMotion()
|
1420
|
1420
|
{
|
1421
|
1421
|
if(force_lcd_update)
|
1422
|
1422
|
{
|
1423
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Esteps/mm:");
|
|
1423
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_ESTEPS);
|
1424
|
1424
|
lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
|
1425
|
1425
|
}
|
1426
|
1426
|
|
|
@@ -1477,19 +1477,19 @@ void MainMenu::showControl()
|
1477
|
1477
|
switch(i)
|
1478
|
1478
|
{
|
1479
|
1479
|
case ItemC_exit:
|
1480
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
1480
|
+ MENUITEM( lcdprintPGM(MSG_MAIN_WIDE) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
1481
|
1481
|
break;
|
1482
|
1482
|
case ItemC_temp:
|
1483
|
|
- MENUITEM( lcdprintPGM(" Temperature \x7E") , BLOCK;status=Sub_TempControl;beepshort(); ) ;
|
|
1483
|
+ MENUITEM( lcdprintPGM(MSG_TEMPERATURE_WIDE) , BLOCK;status=Sub_TempControl;beepshort(); ) ;
|
1484
|
1484
|
break;
|
1485
|
1485
|
case ItemC_move:
|
1486
|
|
- MENUITEM( lcdprintPGM(" Motion \x7E") , BLOCK;status=Sub_MotionControl;beepshort(); ) ;
|
|
1486
|
+ MENUITEM( lcdprintPGM(MSG_MOTION_WIDE) , BLOCK;status=Sub_MotionControl;beepshort(); ) ;
|
1487
|
1487
|
break;
|
1488
|
1488
|
case ItemC_store:
|
1489
|
1489
|
{
|
1490
|
1490
|
if(force_lcd_update)
|
1491
|
1491
|
{
|
1492
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Store EPROM");
|
|
1492
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_STORE_EPROM);
|
1493
|
1493
|
}
|
1494
|
1494
|
if((activeline==line) && CLICKED)
|
1495
|
1495
|
{
|
|
@@ -1503,7 +1503,7 @@ void MainMenu::showControl()
|
1503
|
1503
|
{
|
1504
|
1504
|
if(force_lcd_update)
|
1505
|
1505
|
{
|
1506
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Load EPROM");
|
|
1506
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_LOAD_EPROM);
|
1507
|
1507
|
}
|
1508
|
1508
|
if((activeline==line) && CLICKED)
|
1509
|
1509
|
{
|
|
@@ -1517,7 +1517,7 @@ void MainMenu::showControl()
|
1517
|
1517
|
{
|
1518
|
1518
|
if(force_lcd_update)
|
1519
|
1519
|
{
|
1520
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Restore Failsafe");
|
|
1520
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_RESTORE_FAILSAFE);
|
1521
|
1521
|
}
|
1522
|
1522
|
if((activeline==line) && CLICKED)
|
1523
|
1523
|
{
|
|
@@ -1564,7 +1564,7 @@ void MainMenu::showSD()
|
1564
|
1564
|
switch(i)
|
1565
|
1565
|
{
|
1566
|
1566
|
case 0:
|
1567
|
|
- MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
|
1567
|
+ MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
1568
|
1568
|
break;
|
1569
|
1569
|
// case 1:
|
1570
|
1570
|
// {
|
|
@@ -1595,7 +1595,7 @@ void MainMenu::showSD()
|
1595
|
1595
|
// }
|
1596
|
1596
|
// }break;
|
1597
|
1597
|
case 1:
|
1598
|
|
- 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(); ) ;
|
|
1598
|
+ 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(); ) ;
|
1599
|
1599
|
|
1600
|
1600
|
break;
|
1601
|
1601
|
default:
|
|
@@ -1682,14 +1682,14 @@ void MainMenu::showMainMenu()
|
1682
|
1682
|
switch(line)
|
1683
|
1683
|
{
|
1684
|
1684
|
case ItemM_watch:
|
1685
|
|
- MENUITEM( lcdprintPGM(" Watch \003") , BLOCK;status=Main_Status;beepshort(); ) ;
|
|
1685
|
+ MENUITEM( lcdprintPGM(MSG_WATCH) , BLOCK;status=Main_Status;beepshort(); ) ;
|
1686
|
1686
|
break;
|
1687
|
1687
|
case ItemM_prepare:
|
1688
|
|
- MENUITEM( if(!tune) lcdprintPGM(" Prepare \x7E");else lcdprintPGM(" Tune \x7E"); , BLOCK;status=Main_Prepare;beepshort(); ) ;
|
|
1688
|
+ MENUITEM( if(!tune) lcdprintPGM(MSG_PREPARE);else lcdprintPGM(MSG_TUNE); , BLOCK;status=Main_Prepare;beepshort(); ) ;
|
1689
|
1689
|
break;
|
1690
|
1690
|
|
1691
|
1691
|
case ItemM_control:
|
1692
|
|
- MENUITEM( lcdprintPGM(" Control \x7E") , BLOCK;status=Main_Control;beepshort(); ) ;
|
|
1692
|
+ MENUITEM( lcdprintPGM(MSG_CONTROL_ARROW) , BLOCK;status=Main_Control;beepshort(); ) ;
|
1693
|
1693
|
break;
|
1694
|
1694
|
#ifdef SDSUPPORT
|
1695
|
1695
|
case ItemM_file:
|
|
@@ -1704,13 +1704,13 @@ void MainMenu::showMainMenu()
|
1704
|
1704
|
#endif
|
1705
|
1705
|
{
|
1706
|
1706
|
if(card.sdprinting)
|
1707
|
|
- lcdprintPGM(" Stop Print \x7E");
|
|
1707
|
+ lcdprintPGM(MSG_STOP_PRINT);
|
1708
|
1708
|
else
|
1709
|
|
- lcdprintPGM(" Card Menu \x7E");
|
|
1709
|
+ lcdprintPGM(MSG_CARD_MENU);
|
1710
|
1710
|
}
|
1711
|
1711
|
else
|
1712
|
1712
|
{
|
1713
|
|
- lcdprintPGM(" No Card");
|
|
1713
|
+ lcdprintPGM(MSG_NO_CARD);
|
1714
|
1714
|
}
|
1715
|
1715
|
}
|
1716
|
1716
|
#ifdef CARDINSERTED
|
|
@@ -1730,7 +1730,7 @@ void MainMenu::showMainMenu()
|
1730
|
1730
|
#endif
|
1731
|
1731
|
default:
|
1732
|
1732
|
SERIAL_ERROR_START;
|
1733
|
|
- SERIAL_ERRORLNPGM("Something is wrong in the MenuStructure.");
|
|
1733
|
+ SERIAL_ERRORLNPGM(MSG_SERIAL_ERROR_MENU_STRUCTURE);
|
1734
|
1734
|
break;
|
1735
|
1735
|
}
|
1736
|
1736
|
}
|
|
@@ -1751,12 +1751,12 @@ void MainMenu::update()
|
1751
|
1751
|
if(CARDINSERTED)
|
1752
|
1752
|
{
|
1753
|
1753
|
card.initsd();
|
1754
|
|
- LCD_MESSAGEPGM("Card inserted");
|
|
1754
|
+ LCD_MESSAGEPGM(MSG_SD_INSERTED);
|
1755
|
1755
|
}
|
1756
|
1756
|
else
|
1757
|
1757
|
{
|
1758
|
1758
|
card.release();
|
1759
|
|
- LCD_MESSAGEPGM("Card removed");
|
|
1759
|
+ LCD_MESSAGEPGM(MSG_SD_REMOVED);
|
1760
|
1760
|
}
|
1761
|
1761
|
}
|
1762
|
1762
|
#endif
|