summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-07-15 12:06:16 +0200
committerDaniel Campora <daniel@wipy.io>2015-07-15 14:25:35 +0200
commit753a8e8bc4e4188bc7d059063cdbaafad72dbf2b (patch)
tree78b24422a60d7090a81c58e4d40f04c1673fc264 /cc3200/mptask.c
parente955089da0e60ab7d0f2daed5cb9e775b0927fe2 (diff)
downloadmicropython-753a8e8bc4e4188bc7d059063cdbaafad72dbf2b.tar.gz
micropython-753a8e8bc4e4188bc7d059063cdbaafad72dbf2b.zip
cc3200: Create /flash/cert folder if it doesn't exist.
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index bae0e56493..cdabfddeee 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -337,17 +337,20 @@ STATIC void mptask_init_sflash_filesystem (void) {
// It is set to the internal flash filesystem by default.
f_chdrive("/flash");
- // create /flash/sys and /flash/lib if they don't exist
+ // create /flash/sys, /flash/lib and /flash/cert if they don't exist
if (FR_OK != f_chdir ("/flash/sys")) {
res = f_mkdir("/flash/sys");
}
if (FR_OK != f_chdir ("/flash/lib")) {
res = f_mkdir("/flash/lib");
}
+ if (FR_OK != f_chdir ("/flash/cert")) {
+ res = f_mkdir("/flash/cert");
+ }
f_chdir ("/flash");
- // Make sure we have a /flash/boot.py. Create it if needed.
+ // make sure we have a /flash/boot.py. Create it if needed.
res = f_stat("/flash/boot.py", &fno);
if (res == FR_OK) {
if (fno.fattrib & AM_DIR) {