Limit readonly command to CircuitPython
This commit is contained in:
parent
8dc9ab5fbe
commit
fe54703f22
1 changed files with 3 additions and 1 deletions
|
|
@ -1261,7 +1261,9 @@ def PyDOS():
|
|||
print("Illegal switch, Command Format: PEXEC[/q] python command")
|
||||
|
||||
elif cmd == "READONLY":
|
||||
if readonly:
|
||||
if imp != "C":
|
||||
print("READONLY command is only available when running on CirucitPython.")
|
||||
elif readonly:
|
||||
print("The system is already set to read-only.")
|
||||
else:
|
||||
if input("Setting the system to read-only will cause the Fruit Jam to restart? (y/n): ").upper() == "Y":
|
||||
|
|
|
|||
Loading…
Reference in a new issue