mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
emulation on host: FS: minor reset fix (#7417)
This commit is contained in:
parent
b706fd4d59
commit
799c0f6774
@ -95,7 +95,7 @@ void LittleFSMock::load ()
|
|||||||
if (flen != (off_t)m_fs.size())
|
if (flen != (off_t)m_fs.size())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "LittleFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
|
fprintf(stderr, "LittleFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
|
||||||
if (!m_overwrite)
|
if (!m_overwrite && flen > 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "LittleFS: aborting at user request\n");
|
fprintf(stderr, "LittleFS: aborting at user request\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -94,7 +94,7 @@ void SpiffsMock::load ()
|
|||||||
if (flen != (off_t)m_fs.size())
|
if (flen != (off_t)m_fs.size())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "SPIFFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
|
fprintf(stderr, "SPIFFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
|
||||||
if (!m_overwrite)
|
if (!m_overwrite && flen > 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "SPIFFS: aborting at user request\n");
|
fprintf(stderr, "SPIFFS: aborting at user request\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user