New localization vs octoprint fix - do not translate protocol messages
This commit is contained in:
parent
a7df5f368b
commit
0924ad50d5
5 changed files with 8 additions and 21 deletions
|
@ -4725,9 +4725,9 @@ void process_commands()
|
|||
|
||||
#ifdef SDSUPPORT
|
||||
case 20: // M20 - list SD card
|
||||
SERIAL_PROTOCOLLNRPGM(_i("Begin file list"));////MSG_BEGIN_FILE_LIST c=0 r=0
|
||||
SERIAL_PROTOCOLLNRPGM(_N("Begin file list"));////MSG_BEGIN_FILE_LIST c=0 r=0
|
||||
card.ls();
|
||||
SERIAL_PROTOCOLLNRPGM(_i("End file list"));////MSG_END_FILE_LIST c=0 r=0
|
||||
SERIAL_PROTOCOLLNRPGM(_N("End file list"));////MSG_END_FILE_LIST c=0 r=0
|
||||
break;
|
||||
case 21: // M21 - init SD card
|
||||
|
||||
|
@ -5628,7 +5628,7 @@ Sigma_Exit:
|
|||
enable_endstops(true) ;
|
||||
break;
|
||||
case 119: // M119
|
||||
SERIAL_PROTOCOLRPGM(_i("Reporting endstop status"));////MSG_M119_REPORT c=0 r=0
|
||||
SERIAL_PROTOCOLRPGM(_N("Reporting endstop status"));////MSG_M119_REPORT c=0 r=0
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#if defined(X_MIN_PIN) && X_MIN_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(_n("x_min: "));////MSG_X_MIN c=0 r=0
|
||||
|
|
|
@ -393,13 +393,13 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
|||
if (file.open(curDir, fname, O_READ))
|
||||
{
|
||||
filesize = file.fileSize();
|
||||
SERIAL_PROTOCOLRPGM(_i("File opened: "));////MSG_SD_FILE_OPENED c=0 r=0
|
||||
SERIAL_PROTOCOLRPGM(_N("File opened: "));////MSG_SD_FILE_OPENED c=0 r=0
|
||||
SERIAL_PROTOCOL(fname);
|
||||
SERIAL_PROTOCOLRPGM(_n(" Size: "));////MSG_SD_SIZE c=0 r=0
|
||||
SERIAL_PROTOCOLLN(filesize);
|
||||
sdpos = 0;
|
||||
|
||||
SERIAL_PROTOCOLLNRPGM(_i("File selected"));////MSG_SD_FILE_SELECTED c=0 r=0
|
||||
SERIAL_PROTOCOLLNRPGM(_N("File selected"));////MSG_SD_FILE_SELECTED c=0 r=0
|
||||
getfilename(0, fname);
|
||||
lcd_setstatus(longFilename[0] ? longFilename : fname);
|
||||
lcd_setstatus("SD-PRINTING ");
|
||||
|
@ -422,7 +422,7 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
|||
else
|
||||
{
|
||||
saving = true;
|
||||
SERIAL_PROTOCOLRPGM(_i("Writing to file: "));////MSG_SD_WRITE_TO_FILE c=0 r=0
|
||||
SERIAL_PROTOCOLRPGM(_N("Writing to file: "));////MSG_SD_WRITE_TO_FILE c=0 r=0
|
||||
SERIAL_PROTOCOLLN(name);
|
||||
lcd_setstatus(fname);
|
||||
}
|
||||
|
@ -514,7 +514,7 @@ void CardReader::getStatus()
|
|||
if(sdprinting){
|
||||
SERIAL_PROTOCOL(longFilename);
|
||||
SERIAL_PROTOCOLPGM("\n");
|
||||
SERIAL_PROTOCOLRPGM(_i("SD printing byte "));////MSG_SD_PRINTING_BYTE c=0 r=0
|
||||
SERIAL_PROTOCOLRPGM(_N("SD printing byte "));////MSG_SD_PRINTING_BYTE c=0 r=0
|
||||
SERIAL_PROTOCOL(sdpos);
|
||||
SERIAL_PROTOCOLPGM("/");
|
||||
SERIAL_PROTOCOLLN(filesize);
|
||||
|
|
|
@ -246,16 +246,7 @@ void lcd_implementation_init_noclear(void)
|
|||
}
|
||||
|
||||
|
||||
void lcd_implementation_nodisplay(void)
|
||||
{
|
||||
lcd.noDisplay();
|
||||
}
|
||||
void lcd_implementation_display(void)
|
||||
{
|
||||
lcd.display();
|
||||
}
|
||||
|
||||
void lcd_implementation_clear(void)
|
||||
void lcd_implementation_clear(void)
|
||||
{
|
||||
lcd.clear();
|
||||
}
|
||||
|
|
|
@ -161,8 +161,6 @@ extern void lcd_set_custom_characters_degree(void);
|
|||
|
||||
extern void lcd_implementation_init(void);
|
||||
extern void lcd_implementation_init_noclear(void);
|
||||
extern void lcd_implementation_nodisplay(void);
|
||||
extern void lcd_implementation_display(void);
|
||||
extern void lcd_implementation_clear(void);
|
||||
|
||||
// Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own
|
||||
|
|
|
@ -969,14 +969,12 @@ static void lcd_status_screen()
|
|||
|
||||
if ((ReInitLCD % 10) == 0)
|
||||
{
|
||||
//lcd_implementation_nodisplay();
|
||||
lcd_implementation_init_noclear(); //to maybe revive the LCD if static electricity killed it.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//lcd_implementation_display();
|
||||
lcd_implementation_status_screen();
|
||||
//lcd_implementation_clear();
|
||||
|
||||
|
|
Loading…
Reference in a new issue