Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19716763 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "bumble_experimental/hid: Ensure that hid_report_queue is defined" into main

parents 4292d792 b179280b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -654,6 +654,8 @@ def on_set_report_cb(report_id: int, report_type: int, report_size: int, data: b
    report.report_type = report_type
    report.report_id = report_id
    report.report_data = str(data.hex())

    if hid_report_queue:
        hid_report_queue.put_nowait(report)

    if report_type == Message.ReportType.FEATURE_REPORT:
@@ -702,7 +704,7 @@ def on_virtual_cable_unplug_cb():


hid_protoMode_queue = None

hid_report_queue = None

# This class implements the Hid Pandora interface.
class HIDService(HIDServicer):