mirror of https://github.com/nirenjan/libx52.git
Always return translated error code
LIBUSB_SUCCESS is also handled by libx52_translate_libusb_error.feature/test-new-mem-api
parent
02c24cc964
commit
0913212ecc
|
@ -84,11 +84,7 @@ int libx52_vendor_command(libx52_device *x52, uint16_t index, uint16_t value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc == LIBUSB_SUCCESS) {
|
return libx52_translate_libusb_error(rc);
|
||||||
return LIBX52_SUCCESS;
|
|
||||||
} else {
|
|
||||||
return libx52_translate_libusb_error(rc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int libx52_write_line(libx52_device *x52, uint8_t line_index)
|
static int libx52_write_line(libx52_device *x52, uint8_t line_index)
|
||||||
|
|
Loading…
Reference in New Issue