Fix lis_read_thread not returning properly on error.
This commit is contained in:
1 parent
1b8f843c5f
commit
408a64f169
1 file changed
+1
-1
@@ -302,8 +302,8 @@ lis_read_thread(void *arg)
|
||||
for (size = ftdi_read_data(&p->ftdic, buffer, 64); size > 0; size = ftdi_read_data(&p->ftdic, buffer, 64))
|
||||
;
|
||||
if (size < 0) {
|
||||
return size;
|
||||
p->parent_flag = 0;
|
||||
return size;
|
||||
}
|
||||
}
|
||||
p->parent_flag = 0;
|
||||
|
||||
Reference in new issue
Block a user