Skip to content

Commit

Permalink
Fix M1001 auto-check logic (MarlinFirmware#20456)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand authored and thinkyhead committed Apr 29, 2021
1 parent 7a82c2d commit 5569fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/sd/cardreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@ void CardReader::write_command(char * const buf) {
* - After finishing the previous auto#.g file
* - From the LCD command to begin the auto#.g files
*
* Return 'true' if there was nothing to do
* Return 'true' if an auto file was started
*/
bool CardReader::autofile_check() {
if (!autofile_index) return true;
if (!autofile_index) return false;

if (!isMounted())
mount();
Expand All @@ -773,11 +773,11 @@ void CardReader::write_command(char * const buf) {
cdroot();
openAndPrintFile(autoname);
autofile_index++;
return false;
return true;
}
}
autofile_cancel();
return true;
return false;
}
#endif

Expand Down

0 comments on commit 5569fd8

Please sign in to comment.