Back to the Gcode Dictionary
M22: Release SD card
- This command can be used without any additional parameters.
- Pnnn SD card number (default 0)
- M22 P1
The specified SD card is released, so further (accidental) attempts to read from it are guaranteed to fail. Helpful, but not mandatory before removing the card physically.
In SBC mode and v3.4 or newer this code may be used to unmount block devices or remote endpoints using the mount command. Note that this requires the DuetPiManagementPlugin to be running.
- Pnnn Device node or remote endpoint
- M22 P"0:/gcodes/remote"