|
@@ -755,10 +755,10 @@ void CardReader::write_command(char * const buf) {
|
755
|
755
|
* - After finishing the previous auto#.g file
|
756
|
756
|
* - From the LCD command to begin the auto#.g files
|
757
|
757
|
*
|
758
|
|
- * Return 'true' if there was nothing to do
|
|
758
|
+ * Return 'true' if an auto file was started
|
759
|
759
|
*/
|
760
|
760
|
bool CardReader::autofile_check() {
|
761
|
|
- if (!autofile_index) return true;
|
|
761
|
+ if (!autofile_index) return false;
|
762
|
762
|
|
763
|
763
|
if (!isMounted())
|
764
|
764
|
mount();
|
|
@@ -773,11 +773,11 @@ void CardReader::write_command(char * const buf) {
|
773
|
773
|
cdroot();
|
774
|
774
|
openAndPrintFile(autoname);
|
775
|
775
|
autofile_index++;
|
776
|
|
- return false;
|
|
776
|
+ return true;
|
777
|
777
|
}
|
778
|
778
|
}
|
779
|
779
|
autofile_cancel();
|
780
|
|
- return true;
|
|
780
|
+ return false;
|
781
|
781
|
}
|
782
|
782
|
#endif
|
783
|
783
|
|