Fix typo in spiffs config and update submodule

Fixes github issues #1012 and #1013

https://github.com/espressif/esp-idf/issues/1012
https://github.com/espressif/esp-idf/issues/1013
This commit is contained in:
me-no-dev
2017-09-19 17:09:20 +08:00
parent 7e428433e1
commit 14b12a27cf
4 changed files with 15 additions and 7 deletions

View File

@@ -498,7 +498,7 @@ static int spiffs_mode_conv(int m)
} else if ((m & O_CREAT) && (m & O_TRUNC)) {
res |= SPIFFS_O_CREAT | SPIFFS_O_TRUNC;
} else if (m & O_APPEND) {
res |= SPIFFS_O_APPEND;
res |= SPIFFS_O_CREAT | SPIFFS_O_APPEND;
}
return res;
}