mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Unix detail
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1181 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
927592cb7d
commit
7ef89b6e21
@ -247,7 +247,7 @@ QString pjrc_rawhid::getserial(int num) {
|
||||
hid_t *hid;
|
||||
char buf[128];
|
||||
hid = get_hid(num);
|
||||
if (!hid || !hid->open) return -1;
|
||||
if (!hid || !hid->open) return QString("");
|
||||
|
||||
int retlen = usb_get_string_simple(hid->usb, 3, buf, 128);
|
||||
return QString().fromAscii(buf,-1);
|
||||
|
Loading…
Reference in New Issue
Block a user