monitors/libcamera: fix deduplicating devices with the same name

This commit is contained in:
George Kiagiadakis 2025-04-11 15:53:44 +03:00
parent e51e1b6080
commit 9f440d0b50

View file

@ -31,7 +31,7 @@ SimpleEventHook {
-- deduplicate devices with the same name
for counter = 2, 99, 1 do
if mutils.find_duplicate (parent, id, "device.name", properties["node.name"]) then
if mutils.find_duplicate (parent, id, "device.name", properties["device.name"]) then
properties["device.name"] = name .. "." .. counter
else
break