Skip to content

Commit 753a8e8

Browse files
author
Daniel Campora
committed
cc3200: Create /flash/cert folder if it doesn't exist.
1 parent e955089 commit 753a8e8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cc3200/mptask.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,17 +337,20 @@ STATIC void mptask_init_sflash_filesystem (void) {
337337
// It is set to the internal flash filesystem by default.
338338
f_chdrive("/flash");
339339

340-
// create /flash/sys and /flash/lib if they don't exist
340+
// create /flash/sys, /flash/lib and /flash/cert if they don't exist
341341
if (FR_OK != f_chdir ("/flash/sys")) {
342342
res = f_mkdir("/flash/sys");
343343
}
344344
if (FR_OK != f_chdir ("/flash/lib")) {
345345
res = f_mkdir("/flash/lib");
346346
}
347+
if (FR_OK != f_chdir ("/flash/cert")) {
348+
res = f_mkdir("/flash/cert");
349+
}
347350

348351
f_chdir ("/flash");
349352

350-
// Make sure we have a /flash/boot.py. Create it if needed.
353+
// make sure we have a /flash/boot.py. Create it if needed.
351354
res = f_stat("/flash/boot.py", &fno);
352355
if (res == FR_OK) {
353356
if (fno.fattrib & AM_DIR) {

0 commit comments

Comments
 (0)