#include "serial_hid.h"
#include <string.h>
-/** @cond PRIVATE */
#define LOG_PREFIX "serial-cp2110"
-/** @endcond */
#ifdef HAVE_SERIAL_COMM
#ifdef HAVE_LIBHIDAPI
static const struct vid_pid_item vid_pid_items_cp2110[] = {
{ 0x10c4, 0xea80, },
- VID_PID_TERM,
+ ALL_ZERO
};
enum cp2110_report_id {
buffer[0] = CP2110_FIFO_PURGE;
buffer[1] = CP2110_FIFO_PURGE_TX | CP2110_FIFO_PURGE_RX;
rc = ser_hid_hidapi_set_data(serial, 0, buffer, sizeof(buffer), 0);
- if (rc != 0)
+ if (rc != sizeof(buffer))
return SR_ERR;
return SR_OK;
}