Skip to content

Commit cb55f61

Browse files
authored
Merge pull request #2682 from dhalbert/readonly-keyword-arg
add readonly= keyword to storage.remount where not already present
2 parents 2e698aa + 024d991 commit cb55f61

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

CLUE_Light_Painter/boot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
IO.direction = digitalio.Direction.INPUT
2222
IO.pull = digitalio.Pull.UP
2323

24-
if IO.value: # No connection
25-
storage.remount('/', False) # Remount storage as read/write for painter
24+
if IO.value: # No connection
25+
storage.remount('/', readonly=False) # Remount storage as read/write for painter

CircuitPython_Essentials/CircuitPython_Logger/boot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
switch.pull = digitalio.Pull.UP
2121

2222
# If the switch pin is connected to ground CircuitPython can write to the drive
23-
storage.remount("/", switch.value)
23+
storage.remount("/", readonly=switch.value)

Crickits/flying_trapeze/boot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
switch.pull = digitalio.Pull.UP
1414

1515
# If the switch pin is connected to ground CircuitPython can write to the drive
16-
storage.remount("/", switch.value)
16+
storage.remount("/", readonly=switch.value)

Crickits/yanny_or_laurel/boot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
switch.pull = digitalio.Pull.UP
1212

1313
# If the switch pin is connected to ground CircuitPython can write to the drive
14-
storage.remount("/", switch.value)
14+
storage.remount("/", readonly=switch.value)

EInk_Autostereograms/boot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def read_buttons():
2828
print("OS has write access to CircuitPython drive")
2929
else:
3030
print("CircuitPython has write access to drive")
31-
storage.remount("/", readonly)
31+
storage.remount("/", readonly=readonly)

Introducing_Gemma_M0/Gemma_Logger_boot/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
# If the D0 is connected to ground with a wire
1414
# CircuitPython can write to the drive
15-
storage.remount("/", switch.value)
15+
storage.remount("/", readonly=switch.value)

Web_Workflow_Quickstart/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_current_toml_file(enumerated_files):
4545
# Erase settings.toml then write the contents of the new settings.toml file
4646
def change_toml_file(toml_file):
4747
try:
48-
storage.remount("/", False)
48+
storage.remount("/", readonly=False)
4949
with open("settings.toml", "w") as settings:
5050
settings.write("")
5151
with open("settings.toml", "w") as settings, open(toml_file) as f:

0 commit comments

Comments
 (0)