File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments