Skip to content

Commit 5bab954

Browse files
fixed issue #200
1 parent 035e55d commit 5bab954

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/ics/py_neo_device_ex.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ def serial_number(self) -> str:
8989
return ics.base36enc(self.SerialNumber)
9090
else:
9191
raise ValueError(f"Failed to convert SerialNumber {self.SerialNumber} to a valid serial number.")
92+
93+
@property
94+
def AutoHandleClose(self) -> bool:
95+
"""Return the AutoHandleClose from the internal NeoDevice object."""
96+
return self._auto_handle_close
9297

9398
def open(self, *args, **kwargs):
9499
"""Open the device. Returns a reference to Self on open. See ics.open_device for details on arguments."""
@@ -480,4 +485,8 @@ def write_sdcard(self, *args, **kwargs):
480485

481486
def set_safe_boot_mode(self, *args, **kwargs):
482487
"See ics.set_safe_boot_mode for details on arguments."
483-
return ics.set_safe_boot_mode(self, *args, **kwargs)
488+
return ics.set_safe_boot_mode(self, *args, **kwargs)
489+
490+
def flash_devices(self, *args, **kwargs):
491+
"See ics.flash_devices for details on arguments. This is an internal intrepid function only."
492+
return ics.flash_device(self, *args, **kwargs)

0 commit comments

Comments
 (0)