diff -Nru slimbook-0.5.0/debian/changelog slimbook-0.5.1/debian/changelog --- slimbook-0.5.0/debian/changelog 2023-12-15 17:08:55.000000000 +0000 +++ slimbook-0.5.1/debian/changelog 2023-12-27 08:33:55.000000000 +0000 @@ -1,3 +1,9 @@ +slimbook (0.5.1) jammy; urgency=medium + + * Fixed service crashing with antoher hid device plugged in + + -- Slimbook Wed, 27 Dec 2023 09:33:55 +0100 + slimbook (0.5.0) jammy; urgency=medium * Updated system info with more pproperties diff -Nru slimbook-0.5.0/slimbook/usr/share/slimbook/event-notify.py slimbook-0.5.1/slimbook/usr/share/slimbook/event-notify.py --- slimbook-0.5.0/slimbook/usr/share/slimbook/event-notify.py 2023-11-15 09:35:57.000000000 +0000 +++ slimbook-0.5.1/slimbook/usr/share/slimbook/event-notify.py 2023-12-27 08:12:58.000000000 +0000 @@ -68,11 +68,12 @@ for device in iohid.list_devices(): fd = open(device,"rb") info = iohid.get_device_info(fd) + found = False if (info.bus == iohid.HID_BUS_I2C and info.vendor == 0x93A): report = iohid.get_report_descriptor(fd) reports = iohid.parse_report_descriptor(report) - found = False + for r in reports: if r.report_type == iohid.HID_MAIN_FEATURE: button_switch = False