Merge pull request #5902 from tannewt/c3_writable

Only make CIRCUITPY readonly with USB
This commit is contained in:
MicroDev 2022-01-22 11:19:38 +05:30 committed by GitHub
commit bed724fc17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
main.c
View File

@ -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);