Sorry, looks like the forum has messed up your Makefile snippet, but thanks for including the repo link.
I'll have to pull that in when I get a second - it'd be nice to rename the existing sdio stuff to f1_sdio as well.
As Clive1 mentioned, it'll work correctly if you boot the device up and initialize the library with the SD card in place. If you remove it and re-insert then it breaks, for now anyway.
I think that happens on all cards unfortunately. It's a side-effect of not having any code to deal with the 'card detect' switch - but most people ignore that anyway.
There's E.unmountSD (I think) which you can call when you're done with the filesystem - which should make it safe to pull the card out.
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.
Sorry, looks like the forum has messed up your Makefile snippet, but thanks for including the repo link.
I'll have to pull that in when I get a second - it'd be nice to rename the existing sdio stuff to f1_sdio as well.
I think that happens on all cards unfortunately. It's a side-effect of not having any code to deal with the 'card detect' switch - but most people ignore that anyway.
There's
E.unmountSD
(I think) which you can call when you're done with the filesystem - which should make it safe to pull the card out.