mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-02-18 18:32:29 -07:00
Change openFile default to "not-push" instead of "do-replace"
This commit is contained in:
parent
372f93cc7a
commit
27d70599d4
3 changed files with 4 additions and 4 deletions
|
|
@ -300,10 +300,10 @@ void CardReader::getAbsFilename(char *t) {
|
|||
t[0] = 0;
|
||||
}
|
||||
|
||||
void CardReader::openFile(char* name, bool read, bool replace_current/*=true*/) {
|
||||
void CardReader::openFile(char* name, bool read, bool push_current/*=false*/) {
|
||||
if (!cardOK) return;
|
||||
if (file.isOpen()) { //replacing current file by new file, or subfile call
|
||||
if (!replace_current) {
|
||||
if (push_current) {
|
||||
if (file_subcall_ctr > SD_PROCEDURE_DEPTH - 1) {
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ERRORPGM("trying to call sub-gcode files with too many levels. MAX level is:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue