1
0
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:
pip 2011-02-28 10:15:56 +00:00 committed by pip
parent b8a5249246
commit 6e12a2f04c

View File

@ -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);