MassStorage::Init() does not return its errorcode - so the sketch cannot detect a failure and act accordingly
eg.
int sderr = SD.Init();
if (sderr == SD_MMC_OK) {
logToFile();
} else {
serial.print("SD error ");
serial.printf(stderr, DEC);
logToSerial();
}
but the change is not obvious because this function
- initialises the media controller
- mounts the media device
- mounts the filesystem
each of which can produce an error :/
MassStorage::Init()does not return its errorcode - so the sketch cannot detect a failure and act accordinglyeg.
but the change is not obvious because this function
each of which can produce an error :/