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

Commit b179280b authored by Henri Chataing's avatar Henri Chataing
Browse files

bumble_experimental/hid: Ensure that hid_report_queue is defined

Bug: 380477704
Test: atest BumbleBbluetoothTest
Flag: EXEMPT, test change
Change-Id: I807af55c74fedd0903791f68dce6807c289ef7d4
parent ddef001f
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):