summaryrefslogtreecommitdiff
path: root/supervisor/shared
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-02-14 12:54:34 -0800
committerScott Shawcroft <scott@tannewt.org>2019-02-19 14:50:31 -0800
commit46fd60c70398b51136a2deea84f30e867679ca53 (patch)
treed258a055ea443cb8b0b1879a2905af0eb03a3a35 /supervisor/shared
parent4e75aaecd07ea954aeba5dda59ed3d1b37bfc17d (diff)
Prevent infinite display update recursion and fix VFS mounting
Fixes #1529
Diffstat (limited to 'supervisor/shared')
-rw-r--r--supervisor/shared/filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c
index d968f4798..3382d28be 100644
--- a/supervisor/shared/filesystem.c
+++ b/supervisor/shared/filesystem.c
@@ -95,7 +95,7 @@ void filesystem_flush(void) {
void filesystem_writable_by_python(bool writable) {
fs_user_mount_t *vfs = &_internal_vfs;
- if (writable) {
+ if (!writable) {
vfs->flags |= FSUSER_USB_WRITABLE;
} else {
vfs->flags &= ~FSUSER_USB_WRITABLE;