Skip to content

Commit fe54703

Browse files
committed
Limit readonly command to CircuitPython
1 parent 8dc9ab5 commit fe54703

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builtin_apps/PyDOS/code.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,9 @@ def readBATFile(BATfile):
12611261
print("Illegal switch, Command Format: PEXEC[/q] python command")
12621262

12631263
elif cmd == "READONLY":
1264-
if readonly:
1264+
if imp != "C":
1265+
print("READONLY command is only available when running on CirucitPython.")
1266+
elif readonly:
12651267
print("The system is already set to read-only.")
12661268
else:
12671269
if input("Setting the system to read-only will cause the Fruit Jam to restart? (y/n): ").upper() == "Y":

0 commit comments

Comments
 (0)