Ok, if you pull from GitHub you'll now have function called E.unmountSD(). You could call that on a setWatch of the disconnect pin, but if you are developing something where the user could remove the card at any moment I'd suggest you just call it every time you use the SD card.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, if you pull from GitHub you'll now have function called
E.unmountSD()
. You could call that on asetWatch
of the disconnect pin, but if you are developing something where the user could remove the card at any moment I'd suggest you just call it every time you use the SD card.