Skip to content

Commit 58e6f1f

Browse files
Update device_startup_functions.py
Confirmed working on device with low integer serial number with @annie-xd-wang and @AdvancedImagingUTSW Co-Authored-By: Annie Wang <[email protected]>
1 parent cd31775 commit 58e6f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/navigate/model/device_startup_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ def load_devices(configuration, is_synthetic=False, plugin_devices={}) -> dict:
12401240
)
12411241
# if the serial number is with leading zeros, the yaml reader will convert it to a octal number
12421242
if camera_serial_number.startswith("0"):
1243-
devices["camera"][build_ref_name("_", device["type"], int(camera_serial_number, 8))]
1243+
devices["camera"][build_ref_name("_", device["type"], int(camera_serial_number, 8))] = camera
12441244
else:
12451245
device_ref_name = build_ref_name(
12461246
"_", device["type"], device["serial_number"]

0 commit comments

Comments
 (0)