File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,10 @@ int __attribute__((used)) main(void) {
311
311
filesystem_writable_by_python (true);
312
312
f_open (fs , boot_output_file , CIRCUITPY_BOOT_OUTPUT_FILE , FA_WRITE | FA_CREATE_ALWAYS );
313
313
314
+ // Switch the filesystem back to non-writable by Python now instead of later,
315
+ // since boot.py might change it back to writable.
316
+ filesystem_writable_by_python (false);
317
+
314
318
// Write version info to boot_out.txt.
315
319
mp_hal_stdout_tx_str (MICROPY_FULL_VERSION_INFO );
316
320
mp_hal_stdout_tx_str ("\r\n" );
@@ -327,7 +331,6 @@ int __attribute__((used)) main(void) {
327
331
filesystem_flush ();
328
332
boot_output_file = NULL ;
329
333
}
330
- filesystem_writable_by_python (false);
331
334
#endif
332
335
333
336
// Reset to remove any state that boot.py setup. It should only be used to
You can’t perform that action at this time.
0 commit comments