X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fcem-dt-885x%2Fprotocol.h;h=d6a9466175dae456c72cf4a5974ba9ebbacf386b;hb=695dc859c15ba4190f5c1aa2e1a6e2dc6a6e5845;hp=233ef8603876d103e0c403cd23daca8ed3e06303;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/cem-dt-885x/protocol.h b/src/hardware/cem-dt-885x/protocol.h index 233ef860..d6a94661 100644 --- a/src/hardware/cem-dt-885x/protocol.h +++ b/src/hardware/cem-dt-885x/protocol.h @@ -22,7 +22,7 @@ #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "cem-dt-885x" @@ -32,11 +32,11 @@ #define SAMPLES_PER_PACKET 50 /* Various temporary storage, at least 8 bytes. */ -#define BUF_SIZE SAMPLES_PER_PACKET * 2 +#define BUF_SIZE (SAMPLES_PER_PACKET * 2) /* When in hold mode, force the last measurement out at this interval. * We're using 50ms, which duplicates the non-hold 20Hz update rate. */ -#define HOLD_REPEAT_INTERVAL 50 * 1000 +#define HOLD_REPEAT_INTERVAL (50 * 1000) enum { TOKEN_WEIGHT_TIME_FAST = 0x02, @@ -104,7 +104,6 @@ struct dev_context { gboolean enable_data_source_memory; /* Temporary state across callbacks */ - void *cb_data; unsigned char cmd; unsigned char token; int buf_len;