Use "mount" as card verb

This commit is contained in:
Scott Lahteine
2019-09-15 03:10:59 -05:00
parent 2386c147ad
commit d5f5203880
18 changed files with 42 additions and 43 deletions

View File

@ -30,7 +30,7 @@
/**
* M21: Init SD Card
*/
void GcodeSuite::M21() { card.initsd(); }
void GcodeSuite::M21() { card.mount(); }
/**
* M22: Release SD Card

View File

@ -31,7 +31,7 @@
* M26: Set SD Card file index
*/
void GcodeSuite::M26() {
if (card.isDetected() && parser.seenval('S'))
if (card.isMounted() && parser.seenval('S'))
card.setIndex(parser.value_long());
}

View File

@ -31,7 +31,7 @@
* M30 <filename>: Delete SD Card file
*/
void GcodeSuite::M30() {
if (card.isDetected()) {
if (card.isMounted()) {
card.closefile();
card.removeFile(parser.string_arg);
}

View File

@ -42,7 +42,7 @@
void GcodeSuite::M32() {
if (IS_SD_PRINTING()) planner.synchronize();
if (card.isDetected()) {
if (card.isMounted()) {
const bool call_procedure = parser.boolval('P');
card.openFile(parser.string_arg, true, call_procedure);