implement write lock

This commit is contained in:
Neil Webber 2024-05-04 13:59:48 -05:00
parent fed836b5b3
commit 9442b70617

View file

@ -201,7 +201,9 @@ class RK11:
pass pass
case 0o16, 1: # write lock (write protect) 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 case _, 0: # anything else without the go bit is a nop
pass pass