Merge pull request #5902 from tannewt/c3_writable
Only make CIRCUITPY readonly with USB
This commit is contained in:
commit
bed724fc17
2
main.c
2
main.c
@ -838,7 +838,7 @@ int __attribute__((used)) main(void) {
|
||||
// By default our internal flash is readonly to local python code and
|
||||
// writable over USB. Set it here so that boot.py can change it.
|
||||
filesystem_set_internal_concurrent_write_protection(true);
|
||||
filesystem_set_internal_writable_by_usb(true);
|
||||
filesystem_set_internal_writable_by_usb(CIRCUITPY_USB == 1);
|
||||
|
||||
run_boot_py(safe_mode);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user