Limit readonly command to CircuitPython

This commit is contained in:
RetiredWizard 2025-08-04 14:05:10 -04:00
parent 8dc9ab5fbe
commit fe54703f22

View file

@ -1261,7 +1261,9 @@ def PyDOS():
print("Illegal switch, Command Format: PEXEC[/q] python command") print("Illegal switch, Command Format: PEXEC[/q] python command")
elif cmd == "READONLY": 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.") print("The system is already set to read-only.")
else: else:
if input("Setting the system to read-only will cause the Fruit Jam to restart? (y/n): ").upper() == "Y": if input("Setting the system to read-only will cause the Fruit Jam to restart? (y/n): ").upper() == "Y":