src/eric7/MicroPython/Devices/CircuitPythonDevices.py

branch
eric7
changeset 9767
2eed840795c0
parent 9765
6378da868bb0
child 9783
5f84d5eeee9e
--- a/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Wed Feb 15 15:55:37 2023 +0100
+++ b/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Wed Feb 15 17:45:10 2023 +0100
@@ -155,6 +155,9 @@
         if self.__workspace and not os.path.exists(self.__workspace):
             self.__workspace = ""  # reset
 
+        if self.__workspace and self.DeviceVolumeName not in self.__workspace:
+            self.__workspace = "" # reset
+
         return self.DeviceVolumeName in self.getWorkspace(silent=True)
 
     def __findDeviceDirectories(self, directories):

eric ide

mercurial