From eec4d6c63cd22fb7ca88c1512746337a9d3eee65 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 24 Aug 2020 17:43:52 +0200 Subject: [PATCH] windows: fix test in usb_close --- platform/windows/hci_transport_h2_winusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/hci_transport_h2_winusb.c b/platform/windows/hci_transport_h2_winusb.c index a7c282c7b..972fbd12c 100644 --- a/platform/windows/hci_transport_h2_winusb.c +++ b/platform/windows/hci_transport_h2_winusb.c @@ -1214,7 +1214,7 @@ static int usb_open(void){ static int usb_close(void){ - if (!usb_transport_open == 0) return 0; + if (!usb_transport_open) return 0; // remove data sources btstack_run_loop_remove_data_source(&usb_data_source_command_out);