mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
Fixed linux compile problem.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2917 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
b8a5249246
commit
6e12a2f04c
@ -356,7 +356,7 @@ void pjrc_rawhid::free_all_hid(void)
|
||||
void pjrc_rawhid::hid_close(hid_t *hid)
|
||||
{
|
||||
if (!hid) return;
|
||||
if (!hid->handle || !hid->open) return;
|
||||
if (!hid->open) return;
|
||||
|
||||
usb_release_interface(hid->usb, hid->iface);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user