Use "mount" as card verb
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
/**
|
||||
* M21: Init SD Card
|
||||
*/
|
||||
void GcodeSuite::M21() { card.initsd(); }
|
||||
void GcodeSuite::M21() { card.mount(); }
|
||||
|
||||
/**
|
||||
* M22: Release SD Card
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user