Add an SD Card stop function, use in ultralcd

This commit is contained in:
Scott Lahteine
2016-06-17 18:27:14 -07:00
parent 3a150f07c2
commit bbf5b486c3
3 changed files with 13 additions and 6 deletions

View File

@ -282,6 +282,13 @@ void CardReader::pauseSDPrint() {
if (sdprinting) sdprinting = false;
}
void CardReader::stopSDPrint() {
if (sdprinting) {
sdprinting = false;
file.close();
}
}
void CardReader::openLogFile(char* name) {
logging = true;
openFile(name, false);