From fe54703f22d14e521da08decf72fb6cc0036ab05 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Mon, 4 Aug 2025 14:05:10 -0400 Subject: [PATCH] Limit readonly command to CircuitPython --- builtin_apps/PyDOS/code.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin_apps/PyDOS/code.py b/builtin_apps/PyDOS/code.py index 38594f5..45f08ca 100644 --- a/builtin_apps/PyDOS/code.py +++ b/builtin_apps/PyDOS/code.py @@ -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":