From 9442b706172b92fa0205b6b9de09240d41c4f6f6 Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Sat, 4 May 2024 13:59:48 -0500 Subject: [PATCH] implement write lock --- rk11.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rk11.py b/rk11.py index 1758f57..b12d3ba 100644 --- a/rk11.py +++ b/rk11.py @@ -201,7 +201,9 @@ class RK11: pass case 0o16, 1: # write lock (write protect) - self.writelock() + f = self._get_drive_f() + if f is not None: + self._writelocks.add(f) case _, 0: # anything else without the go bit is a nop pass