|
@@ -3815,10 +3815,14 @@ eeprom_update_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM,0xFFFF);
|
|
|
// lcd_calibration();
|
|
|
// }
|
|
|
|
|
|
- }
|
|
|
- else if (code_seen('^')) {
|
|
|
- // nothing, this is a version line
|
|
|
- } else if(code_seen('G'))
|
|
|
+ }
|
|
|
+ // This prevents reading files with "^" in their names.
|
|
|
+ // Since it is unclear, if there is some usage of this construct,
|
|
|
+ // it will be deprecated in 3.9 alpha a possibly completely removed in the future:
|
|
|
+ // else if (code_seen('^')) {
|
|
|
+ // // nothing, this is a version line
|
|
|
+ // }
|
|
|
+ else if(code_seen('G'))
|
|
|
{
|
|
|
gcode_in_progress = (int)code_value();
|
|
|
// printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
|
|
@@ -5319,7 +5323,7 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
|
|
|
// -----------------------------------
|
|
|
case 23:
|
|
|
starpos = (strchr(strchr_pointer + 4,'*'));
|
|
|
- if(starpos!=NULL)
|
|
|
+ if(starpos!=NULL)
|
|
|
*(starpos)='\0';
|
|
|
card.openFile(strchr_pointer + 4,true);
|
|
|
break;
|