• Earle F. Philhower, III's avatar
    Make multiple SDFS/LittleFS.begin calls noops (#262) · c13bb1ec
    Earle F. Philhower, III authored
    When LittleFS.begin() or SDFS.begin() is called after the filesystem is
    already mounted, don't unmount/remount.  When an unmount happens, all old
    Files become invalid (but the core doesn't know this), so you would end
    up with random crashes in FS code.
    
    Now, check for _mounted, and if so just return immediately from begin().
    c13bb1ec
LittleFS.h 19.8 KB